
STK.register("tool.util.listener", function (f) {
	var g = {}, b = {}, l = "CUSTOM_RID", m = 0, a = Object.prototype.toString, j = {}, e = function (n) {
		var p;
		for (p in n) {
			break;
		}
		return !p;
	}, h = function (n) {
		n = n === window ? j : n;
		if (!/^\[object (Number|String)\]$/.test(a.call(n))) {
			n = n[l] || (n[l] = ++m);
		}
		return n;
	};
	g.defined = function (n, p) {
		var o;
		if (!(o = b[h(n)])) {
			return false;
		}
		if (!(o = o[p])) {
			return false;
		}
		return !e(o);
	};
	g.remove = function (n, p, o) {
		n = h(n);
		if (!(d = b[n])) {
			return;
		}
		if (o) {
			d = d[p];
			if (o[l] == null || !d) {
				return;
			}
			delete d[o[l]];
			e(d) && g.remove(n, p);
			return;
		}
		if (p) {
			delete d[p];
			e(d) && g.remove(n);
			return;
		}
		delete b[n];
	};
	g.register = function (n, q, p) {
		if (typeof p !== "function") {
			return;
		}
		n = h(n);
		var o = h(p);
		c = b[n] = b[n] || {};
		c = c[q] = c[q] || {};
		c[o] = c[o] || p;
	};
	g.fire = function (o, r) {
		var q = h(o);
		if (g.defined(q, r)) {
			var s = b[q][r], p = [];
			Array.prototype.push.apply(p, arguments);
			p.splice(0, 2);
			p.length === 0 && (p = [o, r]);
			for (var n in s) {
				s[n].apply(null, p);
			}
		}
	};
	return g;
});
STK.register("common.language", function (a) {
	window.$LANGUAGE || (window.$LANGUAGE = {});
	return function (b) {
		return a.core.util.language(b, $LANGUAGE);
	};
});
STK.register("module.layer", function (a) {
	var b = function (f) {
		var e = {};
		if (f.style.display == "none") {
			f.style.visibility = "hidden";
			f.style.display = "";
			e.w = f.offsetWidth;
			e.h = f.offsetHeight;
			f.style.display = "none";
			f.style.visibility = "visible";
		} else {
			e.w = f.offsetWidth;
			e.h = f.offsetHeight;
		}
		return e;
	};
	return function (f) {
		var j = a.core.dom.builder(f.template);
		var e = (new Date()).getTime() + "" + Math.random() * Math.pow(10, 17);
		var h = {};
		var l = a.core.dom.cascadeNode(j.list.inner[0]);
		var g = null;
		h.show = function () {
			j.list.outer[0].style.display = "";
			return h;
		};
		h.hide = function () {
			j.list.outer[0].style.display = "none";
			return h;
		};
		h.getPosition = function (p) {
			p = p || "topleft";
			var m = true;
			var o = null;
			var q = j.list.outer[0];
			if (q.style.display == "none") {
				q.style.visibility = "hidden";
				q.style.display = "";
				o = a.core.dom.position(q);
				q.style.display = "none";
				q.style.visibility = "visible";
			} else {
				o = a.core.dom.position(q);
			}
			var n = b(q);
			if (p === "topleft") {
			} else {
				if (p === "topright") {
					o.l = o.l + n.w;
				} else {
					if (p === "bottomleft") {
						o.t = o.t + n.h;
					} else {
						if (p === "bottomright") {
							o.l = o.l + n.w;
							o.t = o.t + n.h;
						}
					}
				}
			}
			return o;
		};
		h.getSize = function (m) {
			if (m || !g) {
				g = b.apply(h, j.list.outer);
			}
			return g;
		};
		h.html = function (m) {
			if (typeof m !== "string") {
				throw "layer's html function need string as arguments";
			}
			l.html(m);
			return h;
		};
		h.text = function (m) {
			if (typeof m !== "string") {
				throw "layer's text function need string as arguments";
			}
			l.ttext(m);
			return h;
		};
		h.appendChild = function (m) {
			j.list.inner[0].appendChild(m);
			return h;
		};
		h.set = function (m, n) {
			return h;
		};
		h.get = function (m) {
			if (m === "sourceid") {
				return e;
			}
			if (m === "parentNode") {
				return j.list.outer[0].parentNode;
			}
			if (m === "domList") {
				return j.list;
			}
			if (m === "outer") {
				return j.list.outer[0];
			}
			if (m === "inner") {
				return j.list.inner[0];
			}
			return j.list[m];
		};
		h.getDom = function (n, m) {
			return j.list[n][m || 0];
		};
		h.getCascadeDom = function (n, m) {
			return a.core.dom.cascadeNode(j.list[n][m || 0]);
		};
		return h;
	};
});
STK.register("module.dialog", function (a) {
	return function (b) {
		var g = a.module.layer({template:b.template});
		var j = g.get("outer");
		j.style.display = "none";
		j.style.position = "absolute";
		j.style.zIndex = b.zIndex || 1000;
		a.foreach(["boxShadow", "webkitBoxShadow", "MozBoxShadow", "mozBoxShadow", "oBoxShadow", "msBoxShadow"], function (m) {
			j.style[m] = "0px 0px 100px #FFFFFF";
		});
		document.body.appendChild(j);
		var l = g.getDom("close");
		var f = function () {
			g.hide();
			if (typeof b.onClose === "function") {
				b.onClose();
			}
		};
		var e = function () {
			g.show();
			if (typeof b.onOpen === "function") {
				b.onOpen();
			}
		};
		if (l) {
			a.core.evt.addEvent(l, "click", f);
		}
		var h = {};
		h.setMiddle = function () {
			var m = a.core.util.winSize();
			var n = g.getSize(true);
			j.style.top = a.core.util.scrollPos()["top"] + (m.height - n.h) / 2 + "px";
			j.style.left = (m.width - n.w) / 2 + "px";
			return h;
		};
		h.setPosition = function (m) {
			j.style.top = m.t + "px";
			j.style.left = m.l + "px";
			return h;
		};
		h.setContent = function (n) {
			var m = g.get("inner");
			while (m.childNodes.length) {
				m.removeChild(m.childNodes[0]);
			}
			m.appendChild(n);
		};
		h.close = function () {
			f();
			return h;
		};
		h.open = function () {
			e();
			return h;
		};
		h.show = g.show;
		h.hide = g.hide;
		h.html = g.html;
		h.text = g.text;
		h.get = g.get;
		h.set = g.set;
		h.getPosition = g.getPosition;
		h.appendChild = g.appendChild;
		h.getSize = g.getSize;
		h.getDom = g.getDom;
		h.getCascadeDom = g.getCascadeDom;
		a.core.obj.cascade(h, ["show", "hide", "set", "appendChild"]);
		return h;
	};
});
STK.register("tool.dom.drag", function (a) {
	return function (f) {
		var l = {};
		var e = {};
		var j = function (n) {
			var m = a.core.dom.position(f.actionEl);
			m.clientX = n.clientX;
			m.clientY = n.clientY;
			f.onstart(m);
			document.body.onselectstart = function () {
				return false;
			};
			a.core.evt.addEvent(document, "mousemove", b);
			a.core.evt.addEvent(document, "mouseup", h);
			a.core.evt.addEvent(document, "click", g, true);
			if (!a.IE) {
				n.preventDefault();
				n.stopPropagation();
			}
			return false;
		};
		var b = function (n) {
			var m = {};
			m.clientX = n.clientX;
			m.clientY = n.clientY;
			f.ondrag(m);
			n.cancelBubble = true;
		};
		var h = function (n) {
			var m = {};
			m.clientX = n.clientX;
			m.clientY = n.clientY;
			f.onend(m);
			document.body.onselectstart = function () {
				return true;
			};
			a.core.evt.removeEvent(document, "mousemove", b);
			a.core.evt.removeEvent(document, "mouseup", h);
			a.core.evt.removeEvent(document, "click", g, true);
		};
		var g = function (m) {
			m.cancelBubble = true;
			return false;
		};
		a.core.evt.addEvent(f.actionEl, "mousedown", j);
		return l;
	};
});
STK.register("module.dragLayer", function (a) {
	return function (s) {
		var t = s.layer;
		var h = t.getDom("outer");
		var q = h;
		if (s.dragtype === "none") {
			return t;
		}
		var o = {};
		var f = function (u) {
			s.onStart && s.onStart();
		};
		var b = function (u) {
			if (typeof s.onmoving == "function") {
				s.onmoving({t:o.t + (u.clientY - o.clientY), l:o.l + (u.clientX - o.clientX)});
			}
		};
		var j = function () {
			s.onEnd && s.onEnd();
		};
		if (s.dragtype === "perch") {
			var n = a.C("div");
			var g = false;
			var l = false;
			n.style.cssText = s.perchstyle || "border:solid #999999 2px";
			n.style.position = "absolute";
			q = n;
			f = function (v) {
				n.style.zIndex = h.style.zIndex + 10;
				var u = t.getSize();
				n.style.width = u.w + "px";
				n.style.height = u.h + "px";
				n.style.left = v.l + "px";
				n.style.top = v.t + "px";
				l = true;
				setTimeout(function () {
					if (l) {
						document.body.appendChild(n);
						g = true;
					}
				}, 200);
				s.onStart && s.onStart();
			};
			j = function (u) {
				l = false;
				h.style.top = n.style.top;
				h.style.left = n.style.left;
				if (g) {
					document.body.removeChild(n);
					g = false;
				}
				b(u);
				s.onEnd && s.onEnd();
			};
		}
		var p = function (v) {
			var u = a.core.dom.position(h);
			f(u);
			o = u;
			o.clientX = v.clientX;
			o.clientY = v.clientY;
			if (typeof q.setCapture === "function") {
				q.setCapture();
			}
		};
		var e = function (u) {
			j(u);
			if (typeof q.setCapture === "function") {
				q.releaseCapture();
			}
		};
		var r = function (z) {
			var v = a.core.util.pageSize()["page"];
			var w = o.t + (z.clientY - o.clientY);
			var u = o.l + (z.clientX - o.clientX);
			if (w + t.getSize()["h"] >= (v.height - 5)) {
				q.style.top = (v.height - t.getSize()["h"] - 5) + "px";
			} else {
				if (w > 0) {
					q.style.top = w + "px";
				} else {
					q.style.top = 0 + "px";
				}
			}
			if (u + t.getSize()["w"] >= (v.width - 5)) {
				q.style.left = (v.width - t.getSize()["w"] - 5) + "px";
			} else {
				if (u > 0) {
					q.style.left = u + "px";
				} else {
					q.style.left = 0 + "px";
				}
			}
			if (s.dragtype !== "perch") {
				b(z);
			}
		};
		var m = a.tool.dom.drag({actionEl:s.act ? s.act : h, onstart:p, onend:e, ondrag:r});
	};
});
STK.register("module.mask", function (a) {
	var b = document, e = b.documentElement || {};
	return function (m) {
		var n = a.parseParam({zIndex:999, opacity:0.35, backgroundColor:"#000000"}, m || {});
		var j = {}, x = a.C("div"), w = ["background-color:", n.backgroundColor].join(""), u = ((/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent) || {1:7})[1] < 7), h = u ? 0 : n.opacity, g = ["filter:alpha(opacity=", h * 100, ");opacity:", h].join(""), A = "position:fixed;left:0px;top:0px", v = "visibility:hidden", s = ["z-index:", n.zIndex].join(""), t = {}, q = {}, y = false, o, B, l, r, p;
		var f = function () {
			var C = a.pageSize().win;
			if (q.width != C.width || q.height != C.height) {
				r = ["width:", (q.width = C.width), "px;height:", (q.height = C.height), "px"].join("");
			}
		};
		var z = function () {
			var C = a.scrollPos();
			if (!u) {
				l = A;
				return;
			}
			if (t.top != C.top || t.left != C.left) {
				l = ["position:absolute;top:", (t.top = C.top), "px;left:", (t.left = C.left), "px"].join("");
			}
		};
		p = function () {
			clearTimeout(B);
			B = setTimeout(function () {
				f();
				z();
				o && (o.style.cssText = [v, l, r, s - 1, g].join(";"));
				x.style.cssText = [v, l, r, w, g, s].join(";");
			}, 200);
		};
		j.show = function () {
			v = "visibility:visible";
			p();
			a.addEvent(window, "resize", p);
			a.addEvent(window, "scroll", p);
		};
		j.hidden = function () {
			v = "visibility:hidden";
			p();
			a.removeEvent(window, "resize", p);
			a.removeEvent(window, "scroll", p);
		};
		u && (function () {
			o = a.C("iframe");
			o.src = "about:blank";
			b.body.appendChild(o);
		})();
		b.body.appendChild(x);
		return j;
	};
});
STK.register("module.flyLayer", function (a) {
	return function (o) {
		var j = a.parseParam({startRect:null, endRect:null, style:"border:solid #333 1px;background-color:#fff", onFlyEnd:function () {
		}}, o || {});
		var n = false;
		var e = [];
		var b = 6;
		for (var g = 0; g < b; g += 1) {
			var f = {l:j.startRect.l + (j.endRect.l - j.startRect.l) * g / b, t:j.startRect.t + (j.endRect.t - j.startRect.t) * g / b, w:j.startRect.w + (j.endRect.w - j.startRect.w) * g / b, h:j.startRect.h + (j.endRect.h - j.startRect.h) * g / b};
			e.push(j.style + a.templet(";width:#{w}px;height:#{h}px;left:#{l}px;top:#{t}px;", f) + "position:absolute;opacity:" + ((0.4) + (0.4) * g / b) + ";filter:alpha(opacity=" + 50 + ");");
		}
		var m = 0;
		var l = a.C("DIV");
		var h = true;
		document.body.appendChild(l);
		var p = a.timer.add(function () {
			if (m >= e.length) {
				a.timer.remove(p);
				document.body.removeChild(l);
				j.onFlyEnd();
				return true;
			}
			l.style.cssText = e[m];
			m += 1;
		});
	};
});
STK.register("common.dialog", function (b) {
	var a = "<table class=\"mBlogLayer\" node-type=\"outer\">\t\t<tr><td class=\"top_l\"></td><td class=\"top_c\"></td><td class=\"top_r\"></td></tr>\t\t<tr>\t\t\t<td class=\"mid_l\"></td>\t\t\t<td class=\"mid_c\">\t\t\t\t<div class=\"layerBox\">\t\t\t\t\t<div class=\"layerBoxTop\">\t\t\t\t\t\t<div node-type=\"title\" class=\"topCon\">\t\t\t\t\t\t\t<strong node-type=\"titlestring\"></strong>\t\t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"close\" node-type=\"close\" title=\"#L{\u5173\u95ed}\"></a>\t\t\t\t\t\t\t<div class=\"clearit\"></div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class=\"layerBoxCon\" style=\"height:auto; width:390px;\" node-type=\"inner\"></div>\t\t\t\t</div>\t\t\t</td>\t\t\t<td class=\"mid_r\"></td>\t\t</tr>\t\t<tr><td class=\"bottom_l\"></td><td class=\"bottom_c\"></td><td class=\"bottom_r\"></td></tr>\t</table>";
	return function (g) {
		var e = b.module.mask();
		var j = [];
		if (g.onOpen) {
			j.push("onOpen");
		}
		if (g.onClose) {
			j.push("onClose");
		}
		var f = b.core.obj.sup(g, j);
		g.onOpen = function () {
			if (f.onOpen) {
				f.onOpen.apply(this, arguments);
			}
			e.show();
		};
		g.onClose = function () {
			if (f.onClose) {
				f.onClose.apply(this, arguments);
			}
			e.hidden();
		};
		g.template = b.common.language(a);
		var m = b.module.dialog(g);
		var l = m.getDom;
		b.module.dragLayer({layer:m, dragtype:g.dragtype || "perch", act:l("title"), perchstyle:null, onmoving:g.onMoving || null, onStart:g.onMoveStart || null, onEnd:g.onMoveEnd || null});
		var h = b.core.obj.sup(m, ["open", "close", "getPosition", "getSize"]);
		m.open = function (s) {
			if (s === false) {
				h.open();
			} else {
				if (s) {
					var r = b.position(s);
					var q = {l:r.l, t:r.t, w:s.offsetWidth, h:s.offsetHeight};
				} else {
					var p = b.winSize();
					var q = {l:0, t:document.documentElement.scrollTop, w:p.width, h:p.height};
				}
				var o = h.getPosition();
				var t = h.getSize();
				var n = {l:o.l, t:o.t, w:t.w, h:t.h};
				b.module.flyLayer({startRect:q, endRect:n, onFlyEnd:function () {
					h.open();
				}});
			}
			return m;
		};
		m.close = function (n) {
			h.close();
			return m;
		};
		return m;
	};
});
STK.register("common.customDialog", function (a) {
	return function (f) {
		var g = a.module.layer({template:f.template});
		var l = a.common.dialog({zIndex:f.zIndex, onClose:f.onClose, onOpen:f.onOpen, onMoving:f.onMoving, onMoveStart:f.onMoveStart, onMoveEnd:f.onMoveEnd, dragtype:f.dragtype, perchstyle:f.perchstyle});
		l.setContent(g.get("outer"));
		var e = a.core.obj.sup(l, ["setContent", "getDom", "get", "getCascadeDom"]);
		var b = function (m) {
			a.core.dom.cascadeNode(e.getDom("titlestring")).ttext(m);
			return h;
		};
		var j = function (m) {
			e.getDom("inner").style.cssText = m;
		};
		b(f.title || "");
		if (typeof f.style === "string") {
			j(f.style);
		}
		var h = l;
		h.setContent = function (n) {
			var m = g.get("inner");
			while (m.childNodes.length) {
				m.removeChild(m.childNodes[0]);
			}
			m.appendChild(n);
			return h;
		};
		h.getDom = function (m) {
			if (m === "close" || m === "title") {
				return e.getDom(m);
			}
			return g.getDom(m);
		};
		h.getCascadeDom = function (m) {
			if (m === "close" || m === "title") {
				return e.getCascadeDom(m);
			}
			return g.getCascadeDom(m);
		};
		h.get = function (m) {
			if (m.indexOf("_dia_") === 0) {
				return e.get(m.slice(4));
			}
			return g.get(m);
		};
		h.set = g.set;
		h.html = g.html;
		h.text = g.text;
		h.appendChild = g.appendChild;
		h.setTitle = function (m) {
			b(m);
			return h;
		};
		h.setIndex = function (m) {
			a.core.dom.cascadeNode(e.getDom("outer")).style.zIndex = m;
			return h;
		};
		h.setStyle = function (m) {
			j(m);
			return h;
		};
		a.core.obj.cascade(h, ["set", "appendChild"]);
		return h;
	};
});
STK.register("common.confirm", function (h) {
	var f = h.common.language;
	var b = "<div class=\"commonLayer2\" node-type=\"outer\">\t\t<div class=\"layerL\"><img node-type=\"icon\" src=\"" + $CONFIG.$BASECSS + "style/images/common/PY_ib.gif\" class=\"PY_ib PY_ib_3\"></div>\t\t<div style=\"width: 284px;\" class=\"layerR\">\t\t\t<p class=\"txt font_14\" node-type=\"inner\"></p>\t\t\t<div class=\"MIB_btn\">\t\t\t\t<a href=\"javascript:void(0);\" class=\"btn_normal\" node-type=\"apply\"><em node-type=\"okLabel\">#L{\u786e\u5b9a}</em></a>\t\t\t\t<a href=\"javascript:void(0);\" class=\"btn_notclick\" node-type=\"cancel\"><em node-type=\"cancelLabel\">#L{\u53d6\u6d88}</em></a>\t\t\t</div>\t\t</div>\t\t<div class=\"clearit\"></div>\t</div>";
	var a = {warning:"PY_ib PY_ib_1", error:"PY_ib PY_ib_2", success:"PY_ib PY_ib_3", doubt:"PY_ib PY_ib_4"};
	var g = [];
	var j = function () {
		var l = {};
		var m = null;
		l.template = f(b);
		l.onOpen = function () {
			m.inUsed = true;
		};
		l.onClose = function () {
			if (m.cancelFunction && !m.applyClick) {
				m.cancelFunction();
			}
			m.cancelFunction = null;
			m.applyFunction = null;
			m.applyClick = null;
			m.inUsed = false;
		};
		m = h.common.customDialog(l);
		m.okLabel = function (n) {
			m.getDom("okLabel").innerHTML = n;
		};
		m.cancelLabel = function (n) {
			m.getDom("cancelLabel").innerHTML = n;
		};
		h.addEvent(m.getDom("cancel"), "click", function () {
			m.close();
			return false;
		});
		h.addEvent(m.getDom("apply"), "click", function () {
			m.applyClick = true;
			if (m.applyFunction) {
				m.applyFunction();
			}
			m.close();
			return false;
		});
		return m;
	};
	var e = function () {
		for (var l = 0; l < g.length; l += 1) {
			if (!g[l]["inUsed"]) {
				return g[l];
			}
		}
		var m = j();
		g.push(m);
		return m;
	};
	return function (l) {
		if (typeof l === "string") {
			var n = l;
			l = {text:n};
		}
		var m = e();
		if (typeof l.text === "string") {
			m.text(l.text);
		}
		if (typeof l.html === "string") {
			m.html(l.html);
		}
		m.okLabel(l.okLabel || f("#L{\u786e\u5b9a}"));
		m.cancelLabel(l.cancelLabel || f("#L{\u53d6\u6d88}"));
		if (l.OK) {
			m.applyFunction = l.OK;
		}
		if (l.cancel) {
			m.cancelFunction = l.cancel;
		}
		if (!l.icon) {
			l.icon = "doubt";
		}
		m.getDom("icon").className = a[l.icon];
		m.setMiddle().open(l.from || null).setTitle(l.title || f("#L{\u63d0\u793a}"));
	};
});
STK.register("tool.io.ajax", function (a) {
	return function (e, m) {
		var p = {};
		var j = {};
		var l = null;
		var h = a.core.util.queue();
		p.url = e;
		p.params = {};
		p.onEmpty = function () {
		};
		p.onComplete = p.onEmpty;
		p.onTraning = p.onEmpty;
		p.onFail = p.onEmpty;
		p.method = m.method;
		if (typeof m.onComplete === "function") {
			p.onComplete = m.onComplete;
		}
		if (typeof m.onTraning === "function") {
			p.onTraning = m.onTraning;
		}
		if (typeof m.onFail === "function") {
			p.onFail = m.onFail;
		}
		var f = function (q) {
			try {
				var r = l ? (l.onComplete || p.onComplete) : p.onComplete;
				r(q, l.params);
			}
			catch (s) {
			}
			finally {
				l = null;
				o();
			}
		};
		var b = function (q) {
			var r = l ? (l.onFail || p.onFail) : p.onFail;
			r(q, p.params);
			l = null;
			o();
		};
		var n = function (q) {
			var r = l ? (l.onTraning || p.onTraning) : p.onTraning;
			r(q, p.params);
		};
		var g = function (s) {
			if (!s) {
				s = p.params;
			}
			p.params = s;
			if (typeof s === "object") {
				var r = {};
				for (var q in s) {
					if (typeof s[q] === "string" || typeof s[q] === "number" || a.core.arr.isArray(s[q])) {
						r[q] = s[q];
					}
				}
				s = r;
			}
			a.core.io.ajax({url:p.url, args:s, method:p.method, asynchronous:p.asynchronous, contentType:p.contentType, encoding:p.encoding, responseType:p.responseType, timeout:p.timeout, onComplete:f, onTraning:n, isEncode:true, onFail:b});
			return j;
		};
		var o = function () {
			if (l === null) {
				l = h.get();
				if (l) {
					g(l.params);
				} else {
					l = null;
				}
			}
		};
		j.request = function (q) {
			h.add({params:q, onSuccess:p.onComplete, onTraning:p.onTraning, onError:p.onFail, onFail:p.onFail});
			o();
			return j;
		};
		j.set = function (q, r) {
			if (q === "onComplete" || q === "onTraning" || q === "onFail") {
				if (typeof r !== "function") {
					throw q + "need a function";
				}
			}
			if (q === "params" || q === "onEmpty") {
				throw "you can't set " + q;
			}
			p[q] = r;
			return j;
		};
		j.get = function (q) {
			return p[q];
		};
		return j;
	};
});
STK.register("tool.io.inter", function (a) {
	return function () {
		var e = {};
		var b = {};
		b.trans = {};
		e.register = function (g, f) {
			if (b.trans[g] !== undefined) {
				throw g + " interface has been registered";
			}
			b.trans[g] = a.tool.io.ajax(f.url, f);
			b.trans[g]["hookComplate"] = {};
			b.trans[g]["regComplate"] = function () {
			};
			b.trans[g].set("onComplete", (function (h) {
				return function (l, o) {
					var j = b.trans[h]["hookComplate"];
					for (var p in j) {
						if (typeof j[p] === "function") {
							try {
								j[p](l, o);
							}
							catch (m) {
							}
						}
					}
					b.trans[h]["regComplate"](l, o);
				};
			})(g));
			return e;
		};
		e.regComplate = function (f, g) {
			b.trans[f]["regComplate"] = g;
			return e;
		};
		e.hookComplate = function (f, h) {
			var g = a.core.util.getUniqueKey();
			b.trans[f]["hookComplate"][g] = h;
			return g;
		};
		e.removeHook = function (f, g) {
			try {
				delete b.trans[f]["hookComplate"][g];
			}
			catch (h) {
			}
		};
		e.regError = function (f, g) {
			b.trans[f].set("onFail", g);
			return e;
		};
		e.request = function (f, g) {
			b.trans[f].request(g);
			return e;
		};
		return e;
	};
});
STK.register("common.trans.global", function (e) {
	var a = e.tool.io.inter();
	var b = a.register;
	var f = "/aj3";
	b("language", {url:f + "/person/aj_select_lang.php", method:"post"});
	return a;
});
STK.jobsM.register("job.language", function (a) {
	if (!window.scope) {
		window.scope = {};
	}
	scope.langList = function (f) {
		var e = f.value;
		var b = {"zh-cn":"#L{\u786e\u8ba4\u5207\u6362\u5230\u7b80\u4f53\u7248\u5417}", "zh-tw":"#L{\u786e\u8ba4\u5207\u6362\u5230\u7e41\u4f53\u7248\u5417}"};
		a.common.trans.global.regComplate("language", function (g, h) {
			if (g.code === "A00006") {
				window.location.reload();
			}
		});
		a.common.confirm({text:a.common.language(b[e]), OK:function () {
			a.common.trans.global.request("language", {uid:$CONFIG.$uid, lang:e});
		}, cancel:function () {
			f.value = $CONFIG.$lang == "zh" ? "zh-cn" : $CONFIG.$lang;
		}, from:f});
	};
});
STK.jobsM.register("job.suda", function (a) {
	try {
		_S_pSt(_S_PID_);
	}
	catch (b) {
	}
});
var _SGUP_ = "SGUP";
var sgup = "";
var SSL = {Config:{}, Space:function (f) {
	var b = f, e = null;
	b = b.split(".");
	e = SSL;
	for (i = 0, len = b.length; i < len; i++) {
		e[b[i]] = e[b[i]] || {};
		e = e[b[i]];
	}
	return e;
}};
SSL.Space("Global");
SSL.Space("Core.Dom");
SSL.Space("Core.Event");
SSL.Space("App");
SSL.Global = {win:window || {}, doc:document, nav:navigator, loc:location};
SSL.Core.Dom = {get:function (a) {
	return document.getElementById(a);
}};
SSL.Core.Event = {on:function () {
}};
SSL.App = {_S_gConType:function () {
	var a = "";
	try {
		SSL.Global.doc.body.addBehavior("#default#clientCaps");
		a = SSL.Global.doc.body.connectionType;
	}
	catch (b) {
		a = "unkown";
	}
	return a;
}, _S_gKeyV:function (j, b, g, f) {
	if (j == "") {
		return "";
	}
	if (f == "") {
		f = "=";
	}
	b = b + f;
	var h = j.indexOf(b);
	if (h < 0) {
		return "";
	}
	h = h + b.length;
	var a = j.indexOf(g, h);
	if (a < h) {
		a = j.length;
	}
	return j.substring(h, a);
}, _S_gUCk:function (a) {
	if ((undefined == a) || ("" == a)) {
		return "";
	}
	return SSL.App._S_gKeyV(SSL.Global.doc.cookie, a, ";", "");
}, _S_sUCk:function (g, a, b, f) {
	if (a != null) {
		if ((undefined == f) || (null == f)) {
			f = "weibo.com";
		}
		if ((undefined == b) || (null == b) || ("" == b)) {
			SSL.Global.doc.cookie = g + "=" + a + ";domain=" + f + ";path=/";
		} else {
			var e = new Date();
			var h = e.getTime();
			h = h + 86400000 * b;
			e.setTime(h);
			h = e.getTime();
			SSL.Global.doc.cookie = g + "=" + a + ";domain=" + f + ";expires=" + e.toUTCString() + ";path=/";
		}
	}
}, _S_gJVer:function (h, b) {
	var g, a, j, e = 1, f = 0;
	if ("MSIE" == b) {
		a = "MSIE";
		g = h.indexOf(a);
		if (g >= 0) {
			j = parseInt(h.substring(g + 5));
			if (3 <= j) {
				e = 1.1;
				if (4 <= j) {
					e = 1.3;
				}
			}
		}
	} else {
		if (("Netscape" == b) || ("Opera" == b) || ("Mozilla" == b)) {
			e = 1.3;
			a = "Netscape6";
			g = h.indexOf(a);
			if (g >= 0) {
				e = 1.5;
			}
		}
	}
	return e;
}, _S_gFVer:function (nav) {
	var ua = SSL.Global.nav.userAgent.toLowerCase();
	var flash_version = 0;
	if (SSL.Global.nav.plugins && SSL.Global.nav.plugins.length) {
		var p = SSL.Global.nav.plugins["Shockwave Flash"];
		if (typeof p == "object") {
			for (var i = 10; i >= 3; i--) {
				if (p.description && p.description.indexOf(" " + i + ".") != -1) {
					flash_version = i;
					break;
				}
			}
		}
	} else {
		if (ua.indexOf("msie") != -1 && ua.indexOf("win") != -1 && parseInt(SSL.Global.nav.appVersion) >= 4 && ua.indexOf("16bit") == -1) {
			for (var i = 10; i >= 2; i--) {
				try {
					var object = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + i + "');");
					if (object) {
						flash_version = i;
						break;
					}
				}
				catch (e) {
				}
			}
		} else {
			if (ua.indexOf("webtv/2.5") != -1) {
				flash_version = 3;
			} else {
				if (ua.indexOf("webtv") != -1) {
					flash_version = 2;
				}
			}
		}
	}
	return flash_version;
}, _S_gMeta:function (b, e) {
	var f = SSL.Global.doc.getElementsByName(b);
	var a = 0;
	if (e > 0) {
		a = e;
	}
	return (f.length > a) ? f[a].content : "";
}, _S_gHost:function (b) {
	var a = new RegExp("^http(?:s)?://([^/]+)", "im");
	if (b.match(a)) {
		return b.match(a)[1].toString();
	} else {
		return "";
	}
}, _S_gDomain:function (a) {
	var b = a.indexOf(".sina.");
	if (b > 0) {
		return a.substr(0, b);
	} else {
		return a;
	}
}, _S_gTJMTMeta:function () {
	return SSL.App._S_gMeta("mediaid");
}, _S_gTJZTMeta:function () {
	var a = SSL.App._S_gMeta("subjectid");
	a.replace(",", ".");
	a.replace(";", ",");
	return a;
}, _S_isFreshMeta:function () {
	var b = SSL.Global.doc.documentElement.innerHTML.substring(0, 1024);
	var a = new RegExp("<meta\\s*http-equiv\\s*=((\\s*refresh\\s*)|('refresh')|(\"refresh\"))s*contents*=", "ig");
	return a.test(b);
}, _S_isIFrameSelf:function (b, a) {
	if (SSL.Global.win.top == SSL.Global.win) {
		return false;
	} else {
		try {
			if (SSL.Global.doc.body.clientHeight == 0) {
				return false;
			}
			if ((SSL.Global.doc.body.clientHeight >= b) && (SSL.Global.doc.body.clientWidth >= a)) {
				return false;
			} else {
				return true;
			}
		}
		catch (f) {
			return true;
		}
	}
}, _S_isHome:function (b) {
	var a = "";
	try {
		SSL.Global.doc.body.addBehavior("#default#homePage");
		a = SSL.Global.doc.body.isHomePage(b) ? "Y" : "N";
	}
	catch (f) {
		a = "unkown";
	}
	return a;
}};
function SUDA(M, l, j) {
	var h = SSL.Global, B = SSL.Core.Dom, y = SSL.Core.Event, m = SSL.App;
	var J = "webbug_meta_ref_mod_noiframe_async_fc_:9.12c", n = "-9999-0-0-1";
	var b = h.nav.appName.indexOf("Microsoft Internet Explorer") > -1 ? "MSIE" : h.nav.appName;
	var x = h.nav.appVersion;
	var t = h.loc.href.toLowerCase();
	var C = h.doc.referrer.toLowerCase();
	var s = "";
	var q = "", N = "SUP", z = "", w = "Apache", A = "SINAGLOBAL", u = "ULV", K = "UOR", v = "_s_upa", a = 320, o = 240, L = 0, r = "", p = "", R = 0, O = 10000, I = 0, f = "_s_acc";
	var S = "_s_tentry";
	var G = t.indexOf("https") > -1 ? "https://" : "http://", F = "beacon.sina.com.cn", H = G + F + "/a.gif", Q = G + F + "/d.gif", P = G + F + "/e.gif", E = G + F + "/fc.html";
	var g = 0, e = 0;
	var D = {_S_sSID:function () {
		D._S_p2Bcn("", Q);
		var T = new Date();
		sid = Math.random() * 10000000000000 + "." + T.getTime();
		m._S_sUCk(w, sid);
		return sid;
	}, _S_gsSID:function () {
		var T = m._S_gUCk(w);
		if ("" == T) {
			T = D._S_sSID();
		}
		return T;
	}, _S_sGID:function (T) {
		if ("" != T) {
			m._S_sUCk(A, T, 3650);
		}
	}, _S_gGID:function () {
		return m._S_gUCk(A);
	}, _S_gsGID:function () {
		if ("" != A) {
			var T = D._S_gGID();
			if ("" == T) {
				T = m._S_gUCk(w);
				D._S_sGID(T);
			}
			return T;
		} else {
			return "";
		}
	}, _S_IFC2GID:function () {
		var T = B.get("SUDA_FC");
		if (T) {
			T.src = E + "?a=g&n=" + A + "&r=" + Math.random();
		}
	}, _S_gCid:function () {
		try {
			var T = m._S_gMeta("publishid");
			if ("" != T) {
				var V = T.split(",");
				if (V.length > 0) {
					if (V.length >= 3) {
						n = "-9999-0-" + V[1] + "-" + V[2];
					}
					return V[0];
				}
			} else {
				return "0";
			}
		}
		catch (U) {
			return "0";
		}
	}, _S_gAEC:function () {
		return m._S_gUCk(f);
	}, _S_sAEC:function (T) {
		if ("" == T) {
			return;
		}
		var U = D._S_gAEC();
		if (U.indexOf(T + ",") < 0) {
			U = U + T + ",";
		}
		m._S_sUCk(f, U, 7);
	}, _S_p2Bcn:function (W, V) {
		var T = B.get("SUDA_CS_DIV");
		if (null != T) {
			var U = new Date();
			T.innerHTML = "<img width=0 height=0 src='" + V + "?" + W + "&gUid_" + U.getTime() + "' border='0' alt='' />";
		}
	}, _S_gSUP:function () {
		if (z != "") {
			return z;
		}
		var V = unescape(m._S_gUCk(N));
		if (V != "") {
			var U = m._S_gKeyV(V, "ag", "&", "");
			var T = m._S_gKeyV(V, "user", "&", "");
			var W = m._S_gKeyV(V, "uid", "&", "");
			var Y = m._S_gKeyV(V, "sex", "&", "");
			var X = m._S_gKeyV(V, "dob", "&", "");
			z = U + ":" + T + ":" + W + ":" + Y + ":" + X;
			return z;
		} else {
			return "";
		}
	}, _S_gsLVisit:function (V) {
		var X = m._S_gUCk(u);
		var W = X.split(":");
		var Y = "";
		if (W.length >= 6) {
			if (V != W[4]) {
				var U = new Date();
				var T = new Date(parseInt(W[0]));
				W[1] = parseInt(W[1]) + 1;
				if (U.getMonth() != T.getMonth()) {
					W[2] = 1;
				} else {
					W[2] = parseInt(W[2]) + 1;
				}
				if (((U.getTime() - T.getTime()) / 86400000) >= 7) {
					W[3] = 1;
				} else {
					if (U.getDay() < T.getDay()) {
						W[3] = 1;
					} else {
						W[3] = parseInt(W[3]) + 1;
					}
				}
				Y = W[0] + ":" + W[1] + ":" + W[2] + ":" + W[3];
				W[5] = W[0];
				W[0] = U.getTime();
				m._S_sUCk(u, W[0] + ":" + W[1] + ":" + W[2] + ":" + W[3] + ":" + V + ":" + W[5], 360);
			} else {
				Y = W[5] + ":" + W[1] + ":" + W[2] + ":" + W[3];
			}
		} else {
			var U = new Date();
			Y = ":1:1:1";
			m._S_sUCk(u, U.getTime() + Y + ":" + V + ":", 360);
		}
		return Y;
	}, _S_gUOR:function () {
		var T = m._S_gUCk(K);
		var U = T.split(":");
		if (U.length >= 2) {
			return U[0];
		} else {
			return "";
		}
	}, _S_sUOR:function () {
		var X = m._S_gUCk(K), ac = "", U = "", ab = "", W = "";
		var ad = /[&|?]c=spr(_[A-Za-z0-9]{1,}){3,}/;
		var Y = new Date();
		if (t.match(ad)) {
			ab = t.match(ad)[0];
		} else {
			if (C.match(ad)) {
				ab = C.match(ad)[0];
			}
		}
		if (ab != "") {
			ab = ab.substr(3) + ":" + Y.getTime();
		}
		if (X == "") {
			if (m._S_gUCk(u) == "" && m._S_gUCk(u) == "") {
				ac = m._S_gDomain(m._S_gHost(C));
				U = m._S_gDomain(m._S_gHost(t));
			}
			m._S_sUCk(K, ac + "," + U + "," + ab, 365);
		} else {
			var Z = 0, aa = X.split(",");
			if (aa.length >= 1) {
				ac = aa[0];
			}
			if (aa.length >= 2) {
				U = aa[1];
			}
			if (aa.length >= 3) {
				W = aa[2];
			}
			if (ab != "") {
				Z = 1;
			} else {
				var V = W.split(":");
				if (V.length >= 2) {
					var T = new Date(parseInt(V[1]));
					if (T.getTime() < (Y.getTime() - 86400000 * 30)) {
						Z = 1;
					}
				}
			}
			if (Z) {
				m._S_sUCk(K, ac + "," + U + "," + ab, 365);
			}
		}
	}, _S_gRef:function () {
		var T = /^[^\?&#]*.swf([\?#])?/;
		if ((C == "") || (C.match(T))) {
			var U = m._S_gKeyV(t, "ref", "&", "");
			if (U != "") {
				return U;
			}
		}
		return C;
	}, _S_MEvent:function () {
		if (R == 0) {
			R++;
			var U = m._S_gUCk(v);
			if (U == "") {
				U = 0;
			}
			U++;
			if (U < O) {
				var T = /[&|?]c=spr(_[A-Za-z0-9]{2,}){3,}/;
				if (t.match(T) || C.match(T)) {
					U = U + O;
				}
			}
			m._S_sUCk(v, U);
		}
	}, _S_gMET:function () {
		var T = m._S_gUCk(v);
		if (T == "") {
			T = 0;
		}
		return T;
	}, _S_gCInfo_v2:function () {
		var T = new Date();
		return "sz:" + screen.width + "x" + screen.height + "|dp:" + screen.colorDepth + "|ac:" + h.nav.appCodeName + "|an:" + b + "|cpu:" + h.nav.cpuClass + "|pf:" + h.nav.platform + "|jv:" + m._S_gJVer(x, b) + "|ct:" + m._S_gConType() + "|lg:" + h.nav.systemLanguage + "|tz:" + T.getTimezoneOffset() / 60 + "|fv:" + m._S_gFVer(h.nav);
	}, _S_gPInfo_v2:function (T, U) {
		if ((undefined == T) || ("" == T)) {
			T = D._S_gCid() + n;
		}
		return "pid:" + T + "|st:" + D._S_gMET() + "|et:" + I + "|ref:" + escape(U) + "|hp:" + m._S_isHome(t) + "|PGLS:" + m._S_gMeta("stencil") + "|ZT:" + escape(m._S_gTJZTMeta()) + "|MT:" + escape(m._S_gTJMTMeta()) + "|keys:";
	}, _S_gUInfo_v2:function (T) {
		return "vid:" + T + "|sid:" + D._S_gsSID() + "|lv:" + D._S_gsLVisit(D._S_gsSID()) + "|un:" + D._S_gSUP() + "|uo:" + D._S_gUOR() + "|ae:" + D._S_gAEC();
	}, _S_gEXTInfo_v2:function (U, T) {
		r = (undefined == U) ? r : U;
		p = (undefined == T) ? p : T;
		return "ex1:" + r + "|ex2:" + p;
	}, _S_pBeacon:function (X, W, U) {
		try {
			var Z = D._S_gsGID();
			if ("" == Z) {
				if (L < 1) {
					setTimeout(function () {
						D._S_pBeacon(X, W, U);
					}, e);
					L++;
					return;
				} else {
					Z = D._S_gsSID();
					D._S_sGID(Z);
				}
			}
			var ab = "V=2";
			var Y = D._S_gCInfo_v2();
			var ad = D._S_gPInfo_v2(X, D._S_gRef());
			var V = D._S_gUInfo_v2(Z);
			var T = D._S_gEXTInfo_v2(W, U);
			var ac = ab + "&CI=" + Y + "&PI=" + ad + "&UI=" + V + "&EX=" + T;
			D._S_p2Bcn(ac, H);
		}
		catch (aa) {
		}
	}, _S_acTrack_i:function (T, V) {
		if (("" == T) || (undefined == T)) {
			return;
		}
		D._S_sAEC(T);
		if (0 == V) {
			return;
		}
		var U = "AcTrack||" + D._S_gGID() + "||" + D._S_gsSID() + "||" + D._S_gSUP() + "||" + T + "||";
		D._S_p2Bcn(U, P);
	}, _S_uaTrack_i:function (V, T) {
		var U = "UATrack||" + D._S_gGID() + "||" + D._S_gsSID() + "||" + D._S_gSUP() + "||" + V + "||" + T + "||" + D._S_gRef() + "||";
		D._S_p2Bcn(U, P);
	}, _S_sTEntry:function () {
		var W = "-";
		if ("" == m._S_gUCk(S)) {
			if ("" != C) {
				W = m._S_gHost(C);
			}
			m._S_sUCk(S, W, "", "weibo.com");
		}
		var U = /weibo.com\/reg.php/;
		if (t.match(U)) {
			var V = m._S_gKeyV(unescape(t), "sharehost", "&", "");
			var T = m._S_gKeyV(unescape(t), "appkey", "&", "");
			if ("" != V) {
				m._S_sUCk(S, V, "", "weibo.com");
			}
			m._S_sUCk("appkey", T, "", "weibo.com");
		}
	}};
	D._S_sTEntry();
	D._S_sUOR();
	return {_S_pSt:function (T, V, U) {
		try {
			if ((m._S_isFreshMeta()) || (m._S_isIFrameSelf(o, a))) {
				return;
			}
			if (I > 0) {
				return;
			}
			++I;
			D._S_gsSID();
			setTimeout(function () {
				D._S_pBeacon(T, V, U, 0);
			}, e);
		}
		catch (W) {
		}
	}, _S_pStM:function (T, V, U) {
		++I;
		D._S_pBeacon(T, ((undefined == V) ? D._S_upExt1() : V), U);
	}, _S_acTrack:function (T, V) {
		try {
			if ((undefined != T) && ("" != T)) {
				setTimeout(function () {
					D._S_acTrack_i(T, V);
				}, g);
			}
		}
		catch (U) {
		}
	}, _S_uaTrack:function (U, T) {
		try {
			if (undefined == U) {
				U = "";
			}
			if (undefined == T) {
				T = "";
			}
			if (("" != U) || ("" != T)) {
				setTimeout(function () {
					D._S_uaTrack_i(U, T);
				}, g);
			}
		}
		catch (V) {
		}
	}, _S_gCk:function (T) {
		return m._S_gUCk(T);
	}, _S_sCk:function (W, T, U, V) {
		return m._S_sUCk(W, T, U, V);
	}, _S_gGlobalID:function () {
		return D._S_gGID();
	}, _S_gSessionID:function () {
		return D._S_gsSID();
	}};
}
var GB_SUDA;
if (GB_SUDA == null) {
	GB_SUDA = new SUDA({});
}
var _S_PID_ = "";
function _S_pSt(a, e, b) {
	GB_SUDA._S_pSt(a, e, b);
}
function _S_pStM(a, e, b) {
	GB_SUDA._S_pStM(a, e, b);
}
function _S_acTrack(a) {
	GB_SUDA._S_acTrack(a, 1);
}
function _S_uaTrack(b, a) {
	GB_SUDA._S_uaTrack(b, a);
}
(function () {
	if (!/\((iPhone|iPad|iPod)/i.test(navigator.userAgent)) {
		return;
	}
	var a = document.createElement("script");
	a.src = "http://news.sina.com.cn/js/ui/ipad/reset.js";
	document.getElementsByTagName("head")[0].appendChild(a);
})();
STK.jobsM.register("job.leftNav", function (g) {
	var f = g.sizzle(".left_nav .func");
	var a = [];
	var e = (function () {
		return function (l) {
			var j;
			var h = {init:function () {
				h.parseDOM();
				h.bind();
			}, parseDOM:function () {
				j = !!g.hasClassName(l, "turn_on");
			}, bind:function () {
				g.addEvent(l, "click", h.toggle);
			}, toggle:function (m) {
				if (j) {
					g.removeClassName(l, "turn_on");
					g.addClassName(l, "turn_off");
					h.toggleItems(0);
					j = false;
				} else {
					g.removeClassName(l, "turn_off");
					g.addClassName(l, "turn_on");
					h.toggleItems(1);
					j = true;
				}
				g.stopEvent(m);
			}, toggleItems:function (o) {
				var n = g.sizzle("dd", l.parentNode.parentNode);
				for (var m in n) {
					if (o) {
						n[m].style.display = "";
					} else {
						n[m].style.display = "none";
					}
				}
			}};
			h.init();
			return h;
		};
	})();
	for (var b in f) {
		a.push(e(f[b]));
	}
});
STK.register("module.input", function (b) {
	var a = b.tool.util.listener;
	return function (f, j, h) {
		var n = {};
		var g = b.parseParam({defValue:"", sucClass:"", errClass:"", focClass:""}, j || {});
		var m = b.parseParam({sucClass:null, errClass:null, focClass:null}, h || {});
		var e = {className:"", style:""};
		var l = {init:function () {
			g.initValue = g.value = f.value;
			if (l.isEmpty(f.value)) {
				f.value = g.defValue;
			}
			e.className = f.className;
			e.style = f.style.cssText;
			b.addEvent(f, "blur", l.blur);
			b.addEvent(f, "focus", l.focus);
			b.addEvent(f, "keyup", l.keyup);
			l.regListener();
		}, isEmpty:function (o) {
			return /^\s*$/g.test(o.replace(/^\s+|\s+$/g, ""));
		}, blur:function () {
			if (l.isEmpty(f.value)) {
				f.value = g.defValue;
			}
			l.recoverStyle();
			m.blurClass && m.blurClass(f);
			a.fire(n, "blur", f.value);
		}, focus:function () {
			g.defValue == f.value && (f.value = "");
			l.recoverStyle();
			b.addClassName(f, g.focClass);
			m.focClass && m.focClass(f);
			a.fire(n, "focus", f.value);
		}, keyup:function () {
			a.fire(n, "keyup", f.value);
		}, error:function (o) {
			l.recoverStyle();
			b.addClassName(f, g.errClass);
			m.errClass && m.errClass(f);
		}, success:function (o) {
			l.recoverStyle();
			b.addClassName(f, g.sucClass);
			m.sucClass && m.sucClass(f);
		}, recoverStyle:function () {
			f.className = e.className;
			f.style.cssText = e.style;
		}, fire:function (p, o) {
			p && a.fire(n, p, o);
		}, regListener:function () {
			a.register(n, "error", l.error);
			a.register(n, "success", l.success);
		}, value:function (o) {
			if (o != null) {
				f.value = g.value = o;
			}
			return (f.value == g.defValue) ? "" : f.value;
		}, reset:function () {
			l.recoverStyle();
			f.value = g.initValue || g.defValue;
		}, defValue:function (o) {
			if (o != null) {
				g.value = o;
				g.defValue = o;
			} else {
				return g.defValue;
			}
		}, isChange:function () {
			return (g.initValue != l.value());
		}};
		n.fire = l.fire;
		n.input = f;
		n.recoverStyle = l.recoverStyle;
		n.value = l.value;
		n.reset = l.reset;
		n.defValue = l.defValue;
		n.isChange = l.isChange;
		l.init();
		return n;
	};
});
STK.register("common.check", function (f) {
	var b = function (j) {
		return function (l) {
			if (new RegExp(j).test(l)) {
				return true;
			} else {
				return false;
			}
		};
	};
	var e = function (j) {
		if (/[\uFF00-\uFFFF]/.test(j)) {
			return false;
		}
		return true;
	};
	var h = function (l) {
		if (!/^[0-9a-z_][_.0-9a-z-]{0,31}@([0-9a-z][0-9a-z-]{0,30}\.){1,4}[a-z]{2,4}$/.test(l)) {
			return false;
		} else {
			if (l && l != "" && (l.indexOf("@") != -1)) {
				var j = l.indexOf("@");
				var m = l.substring(0, j);
				if (m.length > 64 || l.length > 256) {
					return false;
				} else {
					return true;
				}
			}
		}
		return false;
	};
	var a = function (l) {
		if (!/^[\.\w]([(\/)(\-)(\+).\w])*@(qq|vip.qq)\.com$/.test(l)) {
			return false;
		} else {
			if (l && l != "" && (l.indexOf("@") != -1)) {
				var j = l.indexOf("@");
				var m = l.substring(0, j);
				if (m.length > 18 || l.length > 29) {
					return false;
				} else {
					return true;
				}
			}
		}
		return false;
	};
	var g = (function () {
		var j = ["000000", "111111", "11111111", "112233", "123123", "123321", "123456", "654321", "666666", "888888", "abcdef", "abcabc", "abc123", "a1b2c3", "aaa111", "123qwe", "qwerty", "qweasd", "admin", "password", "p@ssword", "passwd", "iloveyou", "5201314"];
		var l = {};
		f.foreach(j, function (m) {
			l[f.trim(m)] = true;
		});
		return function (m) {
			if (l[m]) {
				return false;
			} else {
				return true;
			}
		};
	})();
	return {mobile:b("^1(\\d{10})+$"), mobileNew:b("^\\d{6,14}$"), nickName:b("^[0-9a-zA-Z\u4e00-\u9fa5_-]*$"), question:b("^[0-9a-zA-Z\u4e00-\u9fa5_?\uff1f-]*$"), cardID:b("^(([0-9]{15})|([0-9]{18})|([0-9]{17}(x|X)))$"), URLoose:b("^([^://])+\\:\\/\\/([^\\.]+)(\\.)(.+)([^\\.]+)$"), URL:b("^http:\\/\\/([\\w-]+(\\.[\\w-]+)+(\\/[\\w-   .\\/\\?%@&+=\\u4e00-\\u9fa5]*)?)?$"), imgURI:b("(.jpg|.gif|.png|.JPG|.GIF|.PNG)$"), email:h, password:b("^([\\w\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\+\\`\\-\\=\\[\\]\\\\{\\}\\|\\;\\'\\:\\\"\\,\\.\\/\\<\\>\\?]{6,16})$"), dec:e, zipCode:b("(\\d{6})+$"), weak:g, empty:function (j) {
		if (!j) {
			return false;
		}
		if (!(j instanceof String)) {
			j = j.toString();
		}
		if ((f.core.str.trim(j)).length) {
			return true;
		} else {
			return false;
		}
	}, realName:function (j) {
		if (new RegExp("^[\u4e00-\u9fa5]{2,6}$").test(j)) {
			return true;
		} else {
			if (new RegExp("^[a-z]{2,20}$").test(j)) {
				return true;
			} else {
				if (!(new RegExp("[0-9s_><,\\[\\]\\{\\}?/+=|'\\\":;~!@#*$%^&()`\xff00-\xffff]").test(j))) {
					return true;
				} else {
					return false;
				}
			}
		}
	}, QQNum:function (j) {
		if (new RegExp("^[1-9][0-9]{4,11}$").test(j)) {
			return true;
		} else {
			if (a(j)) {
				return true;
			} else {
				return false;
			}
		}
	}, UCNum:function (j) {
		if (new RegExp("^[1-9][0-9]{4,9}$").test(j)) {
			return true;
		} else {
			return false;
		}
	}, pwdPower:function (o) {
		function n(q) {
			if (q >= 65 && q <= 90) {
				return 2;
			} else {
				if (q >= 97 && q <= 122) {
					return 4;
				} else {
					if (q >= 48 && q <= 57) {
						return 1;
					} else {
						return 8;
					}
				}
			}
		}
		function m(q) {
			var r = 0;
			for (i = 0; i < 4; i++) {
				if (q & 1) {
					r++;
				}
				q >>>= 1;
			}
			return r;
		}
		var l = 0, j = o.length;
		if (j < 6) {
			return 1;
		}
		for (i = 0; i < j; i++) {
			l |= n(o.charCodeAt(i));
		}
		var p = m(l);
		if (o.length >= 10) {
			p++;
		}
		if (!g(o)) {
			p = 1;
		}
		p = Math.min(Math.max(p, 1), 3);
		return p;
	}};
});
STK.register("common.form.inputTip", function (a) {
	return function (e) {
		var f = a.parseParam({template:"<table node-type=\"outer\" class=\"cudTs3\"><tbody>\t\t\t\t<tr><td class=\"topL\"></td><td></td><td class=\"topR\"></td></tr>\t\t\t\t<tr><td></td><td class=\"tdCon\" node-type=\"inner\"></td><td></td></tr>\t\t\t\t<tr><td class=\"botL\"></td><td></td><td class=\"botR\"></td></tr></tbody></table>"}, e || {});
		var g = a.module.layer({template:f.template});
		var b = a.core.obj.sup(g, ["show", "hide"]);
		var h = g;
		h.show = function (j) {
			if (a.core.dom.isNode(j)) {
				j.appendChild(g.getDom("outer"));
			} else {
				document.body.appendChild(g.getDom("outer"));
				g.getDom("outer").style.position = "absolute";
				setTimeout(function () {
					a.core.dom.setXY(g.getDom("outer"), j);
				}, 0);
			}
			b.show();
			return h;
		};
		h.hide = function (j) {
			b.hide();
			return h;
		};
		return h;
	};
});
STK.register("common.form.config", function (a) {
	return {tips:{err:"<table node-type=\"outer\" class=\"cudTs3\"><tbody>\t\t\t\t<tr><td class=\"topL\"></td><td></td><td class=\"topR\"></td></tr>\t\t\t\t<tr><td></td><td class=\"tdCon\" node-type=\"inner\"></td><td></td></tr>\t\t\t\t<tr><td class=\"botL\"></td><td></td><td class=\"botR\"></td></tr></tbody></table>", suc:"<div class=\"setup_info\" node-type=\"outer\"><div class=\"info_tip2\">\t\t\t\t<img class=\"tipicon tip3\" src=\"" + $CONFIG.$BASEIMG + "style/images/common/transparent.gif\" alt=\"\" title=\"\">\t\t\t\t</div><div class=\"info_tip1\" node-type=\"inner\"></div></div>", tip:"<table node-type=\"outer\" style=\"margin-left:0px\" class=\"cudTs\"><tbody>\t\t\t\t<tr><td class=\"topL\"></td><td></td><td class=\"topR\"></td></tr>\t\t\t\t<tr><td></td><td class=\"tdCon\" node-type=\"inner\"></td><td></td></tr>\t\t\t\t<tr><td class=\"botL\"></td><td></td><td class=\"botR\"></td></tr></tbody></table>", loading:"<div node-type=\"outer\" class=\"setup_info\">\t\t\t\t<div class=\"info_tip2\">\t\t\t\t<img node-type=\"inner\" src=\"" + $CONFIG.$BASEIMG + "style/images/common/transparent.gif\" class=\"setup_loading\">\t\t\t\t</div>\t\t\t\t</div>"}, inputStyle:{errClass:function (b) {
		b.style.borderColor = "#FF0000";
		b.style.backgroundColor = "#FFCCCC";
	}, sucClass:function (b) {
		b.style.borderColor = "#999 #c9c9c9 #c9c9c9 #999";
		b.style.backgroundColor = "#FFFFFF";
	}, focClass:function (b) {
		b.style.borderColor = "#A5C760";
		b.style.backgroundColor = "#F4FFD4";
	}, blurClass:function (b) {
	}}};
});
STK.register("comp.accountForm.nickName", function (e) {
	var b = e.tool.util.listener;
	var g = e.common.check;
	var a = e.common.form.config.tips;
	var j = e.common.language;
	var f = {M01100:"#L{\u8bf7\u8f93\u5165\u6635\u79f0}", M01101:"#L{\u8bf7\u8f93\u51654\u4e2a\u5b57\u6bcd\u4ee5\u4e0a\u7684\u6635\u79f0}", M01102:"#L{\u4e0d\u80fd\u8d85\u8fc730\u4e2a\u5b57\u6bcd\u621615\u4e2a\u6c49\u5b57}", M01103:"#L{\u652f\u6301\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u3001\u201c_\u201d\u6216\u51cf\u53f7}", M01128:"#L{\u6635\u79f0\u4e0d\u80fd\u5168\u662f\u6570\u5b57}", M01129:"#L{\u6b64\u6635\u79f0\u592a\u53d7\u6b22\u8fce\uff0c\u5df2\u6709\u4eba\u62a2\u4e86}", MR0038:"#L{\u542b\u6709\u975e\u6cd5\u5b57\u7b26\uff0c\u8bf7\u4fee\u6539}"};
	var h = "#L{4-30\u4e2a\u5b57\u7b26\uff0c\u652f\u6301\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u3001\"_\"\u6216\u51cf\u53f7}";
	return function (o) {
		var p = e.parseParam({status:"unchange", input:null, tip:null, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, o || {});
		var n = e.module.input(p.input, p, p.styleFuc);
		var l = {errTip:e.common.form.inputTip({template:a.err}), sucTip:e.common.form.inputTip({template:a.suc}), tipTip:e.common.form.inputTip({template:a.tip}), loading:e.common.form.inputTip({template:a.loading})};
		var q = function () {
			for (tip in l) {
				l[tip].hide();
			}
		};
		e.common.trans.setting.regComplate("checkNick", function (s, t) {
			setTimeout(function () {
				if (p.status === "loading") {
					l.loading.hide();
					if (s.code === "A00006") {
						p.status = "success";
						n.fire("success");
					} else {
						p.status = "error";
						n.fire("error", e.common.sysmsg(s, f));
					}
				}
			}, 300);
		});
		var m = function (t) {
			var s = true;
			var u = "";
			t = n.value(e.trim(t));
			if (!g.empty(t)) {
				u = f.M01100;
				s = false;
			} else {
				if (e.bLength(t) < 4) {
					u = f.M01101;
					s = false;
				} else {
					if (e.bLength(t) > 30) {
						u = f.M01102;
						s = false;
					} else {
						if (!g.nickName(t)) {
							u = f.M01103;
							s = false;
						} else {
							if (/^[0-9]*$/.test(t)) {
								u = f.M01128;
								s = false;
							}
						}
					}
				}
			}
			if (!s) {
				n.fire("error", u);
			} else {
				p.status = "loading";
				l.loading.show(p.tip);
				e.common.trans.setting.request("checkNick", {nickname:e.trim(n.value())});
			}
			return s;
		};
		b.register(n, "success", function (s) {
			p.status = "success";
			l.sucTip.show(p.tip);
		});
		b.register(n, "error", function (s) {
			p.status = "error";
			l.errTip.show(p.tip).html(j(s));
		});
		b.register(n, "blur", function (s) {
			q();
			n.fire("check", n.value());
		});
		b.register(n, "focus", function (s) {
			q();
			var t = e.position(p.tip);
			if (!e.IE) {
				t.l += 10;
			}
			l.tipTip.show(t).html(j(h));
		});
		b.register(n, "check", function () {
			m(p.input.value);
		});
		var r = {};
		r.hideView = q;
		r.check = function () {
			n.fire("check", n.value());
		};
		r.status = function () {
			return p.status;
		};
		r.showError = function (s) {
			if (f[s]) {
				q();
				n.fire("error", f[s]);
				return true;
			}
			return false;
		};
		r.showSuccess = function () {
			n.fire("success");
		};
		return r;
	};
});
STK.register("comp.privacySelector", function (h) {
	var b = "<div class=\"setup_info\" node-type=\"outer\">\t\t<div class=\"info_tip2\">\t\t\t<img  node-type=\"tick\" class=\"tipicon tip3\" src=\"" + $CONFIG.$BASEIMG + "style/images/common/transparent.gif\" alt=\"\" title=\"\">\t\t</div>\t\t<div class=\"info_tip1\" node-type=\"pos\">\t\t\t<span class=\"info_tabTip\">\t\t\t\t<a class=\"btn_privacy\" href=\"javascript:void(0);\" node-type=\"btn\"><em><span node-type=\"inner\">#L{test}</span><img src=\"" + $CONFIG.$BASEIMG + "style/images/common/transparent.gif\" class=\"small_icon down_arrow\" title=\"\u5c55\u5f00\"></em></a>\t\t\t</span>\t\t</div>\t</div>";
	var a = "<div node-type=\"outer\" class=\"info_tip1\"><div class=\"downmenu\" node-type=\"inner\" style=\"z-index:300\"></div></div>";
	var f = function (l) {
		var m = [];
		var o = l.options;
		for (var n = 0, j = o.length; n < j; n += 1) {
			m[n] = {text:o[n].text, value:o[n].value};
		}
		return m;
	};
	var g = function (l) {
		var m = "";
		var o = l.options;
		for (var n = 0, j = o.length; n < j; n += 1) {
			if (o[n].selected) {
				return o[n].text;
			}
		}
		return "";
	};
	var e = function (m, l) {
		var n = h.C("P");
		var j = h.C("A");
		j.onclick = function () {
			l(m);
		};
		j.innerHTML = m.text;
		j.href = "javascript:void(0)";
		n.appendChild(j);
		return n;
	};
	return function (u) {
		var t = h.parseParam({select:null}, u || {});
		var o = h.module.layer({template:b});
		var s = f(t.select);
		var l = h.module.layer({template:a});
		document.body.appendChild(l.getDom("outer"));
		var v = o.getCascadeDom("inner");
		var n = o.getCascadeDom("tick");
		o.getCascadeDom("inner").ttext(g(t.select));
		l.getCascadeDom("outer").hide();
		for (var m = 0, q = s.length; m < q; m += 1) {
			var j = e(s[m], function (r) {
				v.ttext(r.text);
				t.select.value = r.value;
			});
			l.getDom("inner").appendChild(j);
		}
		h.addEvent(o.getDom("btn"), "click", function () {
			setTimeout(function () {
				var r = h.position(o.getDom("pos"));
				l.getCascadeDom("outer").show().position(r);
			}, 0);
		});
		h.addEvent(document.body, "click", function () {
			l.getCascadeDom("outer").hide();
		});
		h.core.dom.insertBefore(o.getDom("outer"), t.select);
		t.select.style.display = "none";
		var p = o;
		p.isTick = function (r) {
			if (r) {
				n.show();
			} else {
				n.hide();
			}
		};
		p.value = function (x) {
			if (x !== undefined) {
				t.select.value = x;
				for (var w = 0, r = s.length; w < r; w += 1) {
					if (s[w]["value"] == x) {
						v.ttext(s[w]["text"]);
						return x;
					}
				}
				return x;
			} else {
				return t.select.value;
			}
		};
		n.hide();
		return p;
	};
});
STK.register("comp.accountForm.realName", function (e) {
	var b = e.tool.util.listener;
	var f = e.common.check;
	var a = e.common.form.config.tips;
	var g = e.common.language;
	return function (m) {
		var n = e.parseParam({tipStr:"#L{\u8bf7\u586b\u5199\u771f\u5b9e\u59d3\u540d\uff0c\u65b9\u4fbf\u6211\u4eec\u8054\u7cfb\u4f60\u3002}<br />#L{\u4f60\u7684\u8d44\u6599\u4e0d\u4f1a\u900f\u9732\u7ed9\u4efb\u4f55\u4eba}", M01135:"#L{\u8bf7\u8f93\u5165\u771f\u5b9e\u59d3\u540d}", M01136:"#L{\u8bf7\u8f93\u5165\u771f\u5b9e\u59d3\u540d}", M01197:"#L{\u542b\u6709\u975e\u6cd5\u5b57\u7b26\uff0c\u8bf7\u4fee\u6539}", status:"unchange", allowEmpty:true, input:null, tip:null, privacy:null, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, m || {});
		var l = e.module.input(n.input, n, n.styleFuc);
		var h = {errTip:e.common.form.inputTip({template:a.err}), tipTip:e.common.form.inputTip({template:a.tip})};
		if (n.privacy) {
			h.sucTip = e.comp.privacySelector({select:n.privacy});
		} else {
			h.sucTip = e.common.form.inputTip({template:a.suc});
		}
		var o = function () {
			for (tip in h) {
				h[tip].hide();
			}
		};
		var j = function (r) {
			if (n.input.disabled == true) {
				l.fire("success", s);
				return true;
			}
			var q = true;
			var s = "";
			r = l.value(e.trim(r));
			if (n.allowEmpty && !r.length) {
				q = true;
			} else {
				if (e.bLength(r) < 4 || e.bLength(r) > 16) {
					s = n.M01135;
					q = false;
				} else {
					if (!f.realName(r)) {
						s = n.M01136;
						q = false;
					}
				}
			}
			if (!q) {
				l.fire("error", s);
			} else {
				l.fire("success", s);
			}
			return q;
		};
		b.register(l, "success", function (q) {
			n.status = "success";
			n.privacy && h.sucTip.isTick(!!l.value());
			h.sucTip.show(n.tip);
		});
		b.register(l, "error", function (q) {
			n.status = "error";
			h.errTip.show(n.tip).html(g(q));
		});
		b.register(l, "blur", function (q) {
			o();
			l.fire("check", l.value());
		});
		b.register(l, "focus", function (q) {
			o();
			var r = e.position(n.tip);
			if (!e.IE) {
				r.l += 10;
			}
			h.tipTip.show(r).html(g(n.tipStr));
		});
		b.register(l, "check", function () {
			j(l.value());
		});
		var p = {};
		p.hideView = o;
		p.check = function () {
			l.fire("check", l.value());
		};
		p.status = function () {
			return n.status;
		};
		p.showError = function (q) {
			if (n[q]) {
				o();
				l.fire("error", n[q]);
				return true;
			}
			return false;
		};
		p.showSuccess = function () {
			l.fire("success");
		};
		return p;
	};
});
STK.register("comp.accountForm.webAddress", function (e) {
	var b = e.tool.util.listener;
	var g = e.common.check;
	var a = e.common.form.config.tips;
	var j = e.common.language;
	var f = {M01127:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u535a\u5ba2\u5730\u5740}", MR0200:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u535a\u5ba2\u5730\u5740}"};
	var h = "#L{\u4f8b\u5982}http://blog.sina.com.cn/sinat";
	return function (o) {
		var p = e.parseParam({status:"unchange", input:null, tip:null, privacy:null, display:"", defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, o || {});
		var n = e.module.input(p.input, p, p.styleFuc);
		var l = {errTip:e.common.form.inputTip({template:a.err}), tipTip:e.common.form.inputTip({template:a.tip})};
		if (p.privacy) {
			if (p.display == "none") {
				p.privacy.style.display = "none";
			}
			l.sucTip = e.comp.privacySelector({select:p.privacy});
		} else {
			l.sucTip = e.common.form.inputTip({template:a.suc});
		}
		var q = function () {
			for (tip in l) {
				l[tip].hide();
			}
		};
		var m = function (t) {
			var s = true;
			var u = "";
			t = n.value(e.trim(t));
			if (t.length && !g.URL(t)) {
				u = f.M01127;
				s = false;
			}
			if (!s) {
				n.fire("error", u);
			} else {
				n.fire("success", u);
			}
			return s;
		};
		b.register(n, "success", function (s) {
			p.status = "success";
			if (n.value()) {
				l.sucTip.isTick(true);
			} else {
				l.sucTip.isTick(false);
			}
			l.sucTip.show(p.tip);
		});
		b.register(n, "error", function (s) {
			p.status = "error";
			l.errTip.show(p.tip).html(j(s));
		});
		b.register(n, "blur", function (s) {
			q();
			n.fire("check", n.value());
		});
		b.register(n, "focus", function (s) {
			q();
			var t = e.position(p.tip);
			if (!e.IE) {
				t.l += 10;
			}
			l.tipTip.show(t).html(j(h));
		});
		b.register(n, "check", function () {
			m(n.value());
		});
		var r = {};
		r.hideView = q;
		r.check = function () {
			n.fire("check", n.value());
		};
		r.status = function () {
			return p.status;
		};
		r.showError = function (s) {
			if (f[s]) {
				q();
				n.fire("error", f[s]);
				return true;
			}
			return false;
		};
		r.showSuccess = function () {
			n.fire("success");
		};
		return r;
	};
});
STK.register("comp.accountForm.msnAddress", function (e) {
	var b = e.tool.util.listener;
	var g = e.common.check;
	var a = e.common.form.config.tips;
	var j = e.common.language;
	var f = {M01125:"#L{\u4f60\u8f93\u5165\u7684MSN\u8d26\u53f7\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc764\u4e2a\u5b57\u7b26}", M01126:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684MSN\u5730\u5740}"};
	var h = "#L{\u4f8b\u5982}demo@hotmail.com";
	return function (o) {
		var p = e.parseParam({status:"unchange", input:null, tip:null, privacy:null, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, o || {});
		var n = e.module.input(p.input, p, p.styleFuc);
		var l = {errTip:e.common.form.inputTip({template:a.err}), tipTip:e.common.form.inputTip({template:a.tip})};
		if (p.privacy) {
			l.sucTip = e.comp.privacySelector({select:p.privacy});
		} else {
			l.sucTip = e.common.form.inputTip({template:a.suc});
		}
		var q = function () {
			for (tip in l) {
				l[tip].hide();
			}
		};
		var m = function (t) {
			var s = true;
			var u = "";
			t = n.value(e.trim(t));
			if (!t.length) {
				s = true;
			} else {
				if (e.bLength(t) > 64) {
					u = f.M01125;
					s = false;
				} else {
					if (!g.email(t)) {
						u = f.M01126;
						s = false;
					}
				}
			}
			if (!s) {
				n.fire("error", u);
			} else {
				n.fire("success", u);
			}
			return s;
		};
		b.register(n, "success", function (s) {
			p.status = "success";
			if (n.value()) {
				l.sucTip.isTick(true);
			} else {
				l.sucTip.isTick(false);
			}
			l.sucTip.show(p.tip);
		});
		b.register(n, "error", function (s) {
			p.status = "error";
			l.errTip.show(p.tip).html(j(s));
		});
		b.register(n, "blur", function (s) {
			q();
			n.fire("check", n.value());
		});
		b.register(n, "focus", function (s) {
			q();
			var t = e.position(p.tip);
			if (!e.IE) {
				t.l += 10;
			}
			l.tipTip.show(t).html(j(h));
		});
		b.register(n, "check", function () {
			m(n.value());
		});
		var r = {};
		r.hideView = q;
		r.check = function () {
			n.fire("check", n.value());
		};
		r.status = function () {
			return p.status;
		};
		r.showError = function (s) {
			if (f[s]) {
				q();
				n.fire("error", f[s]);
				return true;
			}
			return false;
		};
		r.showSuccess = function () {
			n.fire("success");
		};
		return r;
	};
});
STK.register("comp.accountForm.qqAddress", function (e) {
	var b = e.tool.util.listener;
	var g = e.common.check;
	var a = e.common.form.config.tips;
	var j = e.common.language;
	var f = {M01123:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684QQ\u53f7}", M01124:"#L{\u8f93\u5165\u7684QQ\u53f7\u7801\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc764\u4e2a\u5b57\u7b26\u3002}"};
	var h = "#L{\u4f8b\u5982}17006666";
	return function (o) {
		var p = e.parseParam({status:"unchange", input:null, tip:null, privacy:null, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, o || {});
		var n = e.module.input(p.input, p, p.styleFuc);
		var l = {errTip:e.common.form.inputTip({template:a.err}), tipTip:e.common.form.inputTip({template:a.tip})};
		if (p.privacy) {
			l.sucTip = e.comp.privacySelector({select:p.privacy});
		} else {
			l.sucTip = e.common.form.inputTip({template:a.suc});
		}
		var q = function () {
			for (tip in l) {
				l[tip].hide();
			}
		};
		var m = function (t) {
			var s = true;
			var u = "";
			t = n.value(e.trim(t));
			if (t.length && !g.QQNum(t)) {
				u = f.M01123;
				s = false;
			}
			if (!s) {
				n.fire("error", u);
			} else {
				n.fire("success", u);
			}
			return s;
		};
		b.register(n, "success", function (s) {
			p.status = "success";
			if (n.value()) {
				l.sucTip.isTick(true);
			} else {
				l.sucTip.isTick(false);
			}
			l.sucTip.show(p.tip);
		});
		b.register(n, "error", function (s) {
			p.status = "error";
			l.errTip.show(p.tip).html(j(s));
		});
		b.register(n, "blur", function (s) {
			q();
			n.fire("check", n.value());
		});
		b.register(n, "focus", function (s) {
			q();
			var t = e.position(p.tip);
			if (!e.IE) {
				t.l += 10;
			}
			l.tipTip.show(t).html(j(h));
		});
		b.register(n, "check", function () {
			m(n.value());
		});
		var r = {};
		r.hideView = q;
		r.check = function () {
			n.fire("check", n.value());
		};
		r.status = function () {
			return p.status;
		};
		r.showError = function (s) {
			if (f[s]) {
				q();
				n.fire("error", f[s]);
				return true;
			}
			return false;
		};
		r.showSuccess = function () {
			n.fire("success");
		};
		return r;
	};
});
STK.register("comp.accountForm.bio", function (e) {
	var b = e.tool.util.listener;
	var f = e.common.check;
	var a = e.common.form.config.tips;
	var g = e.common.language;
	return function (m) {
		var n = e.parseParam({M01117:"#L{\u8bf7\u8f93\u5165\u8be6\u7ec6\u5185\u5bb9}", M01118:"#L{\u4f60\u8f93\u5165\u7684\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a}", M01119:"#L{\u4f60\u8f93\u5165\u7684\u4e2a\u4eba\u7b80\u4ecb\u4e0d\u80fd\u8d85\u8fc770\u4e2a\u5b57}", M02022:"#L{\u542b\u6709\u975e\u6cd5\u5b57\u7b26\uff0c\u8bf7\u4fee\u6539}", tipStr:"#L{\u8bf7\u4e0d\u8981\u8d85\u8fc770\u4e2a\u5b57}", maxLength:140, minLength:0, allowEmpty:true, status:"unchange", input:null, tip:null, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, m || {});
		var l = e.module.input(n.input, n, n.styleFuc);
		var h = {errTip:e.common.form.inputTip({template:a.err}), sucTip:e.common.form.inputTip({template:a.suc}), tipTip:e.common.form.inputTip({template:a.tip})};
		var o = function () {
			for (tip in h) {
				h[tip].hide();
			}
		};
		var j = function (r) {
			if (n.input.disabled == true) {
				l.fire("success", s);
				return true;
			}
			var q = true;
			var s = "";
			r = l.value(e.trim(r));
			if (!n.allowEmpty && !r.length) {
				s = n.M01118;
				q = false;
			} else {
				if (r.length) {
					if (e.bLength(r) > n.maxLength) {
						s = n.M01119;
						q = false;
					} else {
						if (e.bLength(r) < n.minLength) {
							s = n.M01117;
							q = false;
						}
					}
				}
			}
			if (!q) {
				l.fire("error", s);
			} else {
				l.fire("success", s);
			}
			return q;
		};
		b.register(l, "success", function (q) {
			n.status = "success";
			if (l.value()) {
				h.sucTip.show(n.tip);
			}
		});
		b.register(l, "error", function (q) {
			n.status = "error";
			h.errTip.show(n.tip).html(g(q));
		});
		b.register(l, "blur", function (q) {
			o();
			l.fire("check", l.value());
		});
		b.register(l, "focus", function (q) {
			o();
			var r = e.position(n.tip);
			if (!e.IE) {
				r.l += 10;
			}
			h.tipTip.show(r).html(g(n.tipStr));
		});
		b.register(l, "check", function () {
			j(l.value());
		});
		var p = {};
		p.hideView = o;
		p.check = function () {
			l.fire("check", l.value());
		};
		p.status = function () {
			return n.status;
		};
		p.showError = function (q) {
			if (n[q]) {
				o();
				l.fire("error", n[q]);
				return true;
			}
			return false;
		};
		p.showSuccess = function () {
			l.fire("success");
		};
		return p;
	};
});
STK.register("comp.accountForm.idCard", function (e) {
	var b = e.tool.util.listener;
	var g = e.common.check;
	var a = e.common.form.config.tips;
	var h = e.common.language;
	var f = {M01133:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7\u7801}", M01191:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8bc1\u4ef6\u53f7\u7801}"};
	return function (n) {
		var o = e.parseParam({tipStr:"#L{\u8bf7\u8f93\u5165\u8bc1\u4ef6\u53f7\u7801\uff0c\u4fdd\u5b58\u540e\u4e0d\u53ef\u4fee\u6539}", status:"unchange", input:null, tip:null, select:null, allowEmpty:true, defValue:"", sucClass:"", errClass:"", focClass:"", styleFuc:e.common.form.config.inputStyle}, n || {});
		var m = e.module.input(o.input, o, o.styleFuc);
		var j = {errTip:e.common.form.inputTip({template:a.err}), tipTip:e.common.form.inputTip({template:a.tip}), sucTip:e.common.form.inputTip({template:a.suc})};
		var p = function () {
			for (tip in j) {
				j[tip].hide();
			}
		};
		var l = function (t) {
			if (o.input.disabled == true) {
				m.fire("success", u);
				return true;
			}
			var r = true;
			var u = "";
			var s = m.value(e.trim(t.input));
			if (o.allowEmpty && !s) {
				r = true;
			} else {
				if (t.select === "1") {
					if (!g.cardID(s)) {
						r = false;
						u = f.M01133;
					}
				} else {
					if (t.select === "6") {
						if (!/^[0-9a-zA-Z\(\)]{7,20}$/.test(s)) {
							r = false;
							u = f.M01191;
						}
					} else {
						if (!/^[0-9a-zA-Z]{3,20}$/.test(s)) {
							r = false;
							u = f.M01191;
						}
					}
				}
			}
			if (!r) {
				m.fire("error", u);
			} else {
				m.fire("success", u);
			}
			return r;
		};
		b.register(m, "success", function (r) {
			o.status = "success";
			if (m.value()) {
				j.sucTip.show(o.tip);
			}
		});
		b.register(m, "error", function (r) {
			o.status = "error";
			j.errTip.show(o.tip).html(h(r));
		});
		b.register(m, "blur", function (r) {
			p();
			m.fire("check");
		});
		b.register(m, "focus", function (r) {
			p();
			var s = e.position(o.tip);
			if (!e.IE) {
				s.l += 10;
			}
			j.tipTip.show(s).html(h(o.tipStr));
		});
		b.register(m, "check", function () {
			l({input:m.value(), select:o.select.value});
		});
		e.addEvent(o.select, "change", function () {
			p();
			m.fire("check");
		});
		var q = {};
		q.hideView = p;
		q.check = function () {
			m.fire("check", m.value());
		};
		q.status = function () {
			return o.status;
		};
		q.showError = function (r) {
			if (f[r]) {
				p();
				m.fire("error", f[r]);
				return true;
			}
			return false;
		};
		q.showSuccess = function () {
			m.fire("success");
		};
		return q;
	};
});
STK.register("common.trans.setting", function (e) {
	var a = e.tool.io.inter();
	var b = a.register;
	var f = "/aj3";
	if ($CONFIG.$aj_path) {
		f = $CONFIG.$aj_path;
	}
	b("baseInfo", {url:f + "/person/myinfo_post.php", method:"post"});
	b("changeMail", {url:f + "/person/mailnotice_active.php", method:"post"});
	b("clearMail", {url:f + "/person/mailnotice_unbind.php", method:"post"});
	b("schoolList", {url:f + "/person/relateschool.php"});
	b("upSchool", {url:f + "/person/updateschool.php", method:"post"});
	b("removeSchool", {url:f + "/person/delschool.php", method:"post"});
	b("companyList", {url:f + "/person/relatecompany.php"});
	b("changeURL", {url:"/aj4/person/mysite_post.php", method:"post"});
	b("changePWD", {url:f + "/person/editpasswd_post.php", method:"post"});
	b("privacy", {url:f + "/person/privacy_post.php", method:"post"});
	b("personal", {url:f + "/person/notice_post.php", method:"post"});
	b("addSchool", {url:f + "/person/updateschool.php", method:"post"});
	b("createCompany", {url:f + "/person/updatecompany.php", method:"post"});
	b("removeCompany", {url:f + "/person/delcompany.php", method:"post"});
	b("tagList", {url:f + "/person/aj_tagchooser.php"});
	b("checkNick", {url:f + "/person/aj_checknick.php"});
	b("medalSet", {url:"/aj3/person/aj_medalsetting.php", method:"post"});
	b("addTags", {url:f + "/person/aj_addusertag.php", method:"post"});
	b("delTags", {url:f + "/person/aj_delusertag.php", method:"post"});
	b("getarea", {url:f + "/person/aj_getarea.php", method:"post"});
	b("getStudents", {url:f + "/person/aj_myschool.php"});
	b("getColleagues", {url:f + "/person/aj_mycompany.php"});
	b("getSchool", {url:f + "/person/aj_editschool.php"});
	b("getCompany", {url:f + "/person/aj_editcompany.php"});
	b("setapp", {url:f + "/person/aj_apprevoke.php", method:"post"});
	b("clearMapMsg", {url:"/aj3/person/aj_clearmapmsg.php"});
	b("setnotice", {url:"/aj4/mobile/aj_setnotice.php", method:"post"});
	b("warnMobile", {url:"/aj4/person/aj_setsearchbymobile.php", method:"post"});
	b("unBindMobile", {url:"/aj4/mobile/aj_cancelbind_v4.php", method:"post"});
	b("checkBind", {url:"/aj4/mobile/aj_checkbind.php", method:"post"});
	b("bindPhone", {url:"/aj4/mobile/aj_bindmobile.php", method:"post"});
	b("changeMobile", {url:"/aj3/mobile/aj_changemobile.php", method:"post"});
	b("medalInfo", {url:"/aj3/plugins/aj_popmedal.php"});
	b("receivingInfo", {url:f + "/person/receaddr_post.php", method:"post"});
	b("version", {url:f + "/person/set_version.php", method:"post"});
	b("sendMobileCode", {url:"/aj3/person/aj_sendcode.php", method:"post"});
	b("checkpwd", {url:f + "/person/aj_checkpwd.php", method:"post"});
	b("checkQQ", {url:f + "/person/qqmailnotice_active.php", method:"post"});
	b("verifyCode", {url:f + "/person/aj_checkpicode.php", method:"post"});
	b("feedList", {url:"/aj4/attention/aj_chooser.php", method:"get"});
	b("myFeed", {url:"/aj4/person/aj_myfeed.php", method:"post"});
	b("delMyFeed", {url:"/aj4/person/aj_delmyfeed.php", method:"post"});
	b("delBlacklist", {url:"/aj4/person/blackdel.php", method:"post"});
	b("myCredit", {url:"/aj3/person/aj_mycredithis.php", method:"post"});
	b("getCountry", {url:"/aj3/person/aj_country.php", method:"post"});
	b("getProvince", {url:"/aj3/person/aj_province.php", method:"get"});
	b("getCity", {url:"/aj3/person/aj_city.php", method:"get"});
	b("unbindMobileAlert", {url:"/aj3/person/aj_mobilebindmark.php", method:"post"});
	b("recomTagList", {url:"/set/aj/tagsuggest", method:"get"});
	b("delSource", {url:"/aj4/person/feedappdel.php", method:"post"});
	b("receivingInfoFor2012", {url:"/zt/2012chunjie/receaddr_post.php?a=" + (new Date()).getTime(), method:"post"});
	b("receivingInfoForyuandan", {url:"/zt/2012yuandan/receaddr_post.php?a=" + (new Date()).getTime(), method:"post"});
	b("sendMobileCode2", {url:"/set/aj/mobileauth", method:"post"});
	return a;
});
STK.register("comp.generalMail", function (h) {
	var b = "<div class=\"mailBoxLayer\" node-type=\"outer\">\t\t<div node-type=\"before\">\t\t<p class=\"gray6\">#L{\u8bf7\u586b\u5199\u81ea\u5df1\u5e38\u7528\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u65b9\u4fbf\u5927\u5bb6\u8054\u7cfb\u4f60\uff01}</p>\t\t<div class=\"inputBox\">#L{\u90ae\u7bb1\u5730\u5740\uff1a}\t\t\t<input type=\"text\" value=\"\" node-type=\"inner\" />\t\t</div>\t\t<p class=\"errorTs error_color\" node-type=\"errorTip\" style=\"display:none\">#L{\u5bc6\u7801\u9519\u8bef}</p>\t\t<div class=\"btns\">\t\t\t<a href=\"javascript:void(0);\" class=\"btn_normal\" node-type=\"OK\"><em>#L{\u4fdd\u5b58}</em></a>\t\t\t<a href=\"javascript:void(0);\" class=\"btn_normal\" node-type=\"cancel\"><em>#L{\u53d6\u6d88}</em></a>\t\t</div>\t\t</div>\t\t<div node-type=\"after\" style=\"display:none\">\t\t<p class=\"gray6\">#L{\u9a8c\u8bc1\u6210\u529f\u7684\u90ae\u7bb1\uff0c\u53ef\u4ee5\u7528\u6765\u63a5\u6536\u4f60\u5173\u6ce8\u7684\u6700\u65b0\u6d88\u606f\u63d0\u9192\uff0c\u4f60\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u662f\u5426\u63a5\u6536\u6700\u65b0\u63d0\u9192\uff0c\u65b0\u9c9c\u63d0\u9192\u4e00\u952e\u641e\u5b9a}\uff01</p>\t\t<div class=\"email\" node-type=\"gocheck\">\t\t\t<p class=\"fb font_18\" node-type=\"mailAddress\"></p>\t\t\t<a href=\"/setting/mailnotice\" target=\"_blank\" node-type=\"checkLink\" class=\"btn_normal\"><em>\u53bb\u9a8c\u8bc1&gt;&gt;</em></a>\t\t</div>\t\t</div>\t</div>";
	var g = h.tool.util.listener;
	var j = {M01106:"#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740}"};
	var f = [];
	var e = function (q) {
		var p = h.parseParam({onSuccess:function () {
		}}, q || {});
		var o = {};
		var r = null;
		var m = "unchange";
		o.template = h.common.language(b);
		o.onOpen = function () {
			r.inUsed = true;
		};
		o.onClose = function () {
			r.inUsed = false;
			n.fire("success");
		};
		r = h.common.customDialog(o);
		var n = h.module.input(r.getDom("inner"), {}, h.common.form.config.inputStyle);
		var l = function (t) {
			var s = true;
			var u = "";
			t = n.value(h.trim(t));
			if (!t) {
				s = true;
			} else {
				if (!h.common.check.email(t)) {
					s = false;
					u = j.M01106;
				}
			}
			if (!s) {
				n.fire("error", u);
			} else {
				n.fire("success", u);
			}
			return s;
		};
		h.common.trans.setting.regComplate("changeMail", function (s, t) {
			if (s.code === "A00006") {
				p.onSuccess(n.value());
				if (n.value()) {
					r.close();
				} else {
					r.close();
				}
			} else {
				n.fire("error", j[s.code] || s.msg || j.M01106);
			}
		});
		h.common.trans.setting.regComplate("clearMail", function (s, t) {
			if (s.code === "A00006") {
				p.onSuccess(n.value());
				r.close();
			} else {
				n.fire("error", j[s.code] || s.msg || j.M01106);
			}
		});
		g.register(n, "success", function (s) {
			m = "success";
			h.core.dom.cascadeNode(r.getDom("errorTip")).hide();
		});
		g.register(n, "error", function (s) {
			m = "error";
			h.core.dom.cascadeNode(r.getDom("errorTip")).show().html(h.common.language(s));
		});
		g.register(n, "blur", function (s) {
			n.value(n.value().toLowerCase());
			n.fire("check", n.value());
		});
		g.register(n, "focus", function (s) {
			h.core.dom.cascadeNode(r.getDom("errorTip")).hide();
		});
		g.register(n, "check", function () {
			l(n.value());
		});
		h.addEvent(r.getDom("OK"), "click", function () {
			if (m === "success" || m === "unchange") {
				if (n.value()) {
					h.common.trans.setting.request("changeMail", {email:n.value()});
				} else {
					h.common.trans.setting.request("clearMail", {});
				}
			}
		});
		h.addEvent(r.getDom("cancel"), "click", function () {
			r.close();
		});
		r.setValue = function (s) {
			n.value(s);
		};
		return r;
	};
	var a = function (l) {
		for (var m = 0; m < f.length; m += 1) {
			if (!f[m]["inUsed"]) {
				return f[m];
			}
		}
		var n = e(l);
		f.push(n);
		return n;
	};
	return function (l) {
		var m = a({onSuccess:l.onSuccess});
		m.getCascadeDom("after").hide();
		m.getCascadeDom("before").show();
		m.setMiddle().open(l.actEl).setTitle(l.title || "\u4fee\u6539\u5e38\u7528\u90ae\u7bb1");
		m.setValue("");
	};
});
STK.register("common.dateSelector", function (e) {
	var a = function (o, j) {
		var l = function (m) {
			return m % 400 ? (m % 100 ? (m % 4 ? 0 : 1) : 0) : 1;
		};
		if (!(o * j)) {
			return 0;
		}
		var n = 31;
		switch (j) {
		  case 4:
		  case 6:
		  case 9:
		  case 11:
			n = 30;
			break;
		  case 2:
			n = l(o) ? 29 : 28;
			break;
		}
		return n;
	};
	var g = function (j) {
		if (j == 0) {
			return 0;
		} else {
			return (j < 10) ? "0" + j : j;
		}
	};
	var f = function (o, p) {
		var l = parseInt(o.value, 10) || 0;
		while (o.options.length > 1) {
			o.remove(1);
		}
		o.remove(0);
		o.options[0] = new Option("", 0);
		for (var j = 1; j <= p; j++) {
			var m = g(j);
			o.options[o.options.length] = new Option(m, m);
		}
		o.value = g(Math.min(l, p));
	};
	var h = function (j) {
		while (j.options.length > 1) {
			j.remove(1);
		}
	};
	var b = function (m, l, j) {
		if (m.selectedIndex == 0) {
			l.selectedIndex = j.selectedIndex = 0;
			h(l);
			h(j);
		} else {
			f(l, 12);
		}
	};
	return function (o, n, j, m) {
		var l = function () {
			b(o, n, j);
			f(j, a(parseInt(o.value), parseFloat(n.options[n.selectedIndex].text)));
		};
		e.addEvent(o, "change", function () {
			b(o, n, j);
		});
		e.addEvent(n, "change", l);
		l();
		m = parseInt(m, 10) || 0;
		j.value = g(m) || "00";
	};
});
STK.register("common.provinceAndCity", function (f) {
	var g = f.common.language;
	var a = {};
	var b = {prov0:"\u57ce\u5e02/\u5730\u533a", code0:"0", prov34:"\u5408\u80a5,\u829c\u6e56,\u868c\u57e0,\u6dee\u5357,\u9a6c\u978d\u5c71,\u6dee\u5317,\u94dc\u9675,\u5b89\u5e86,\u9ec4\u5c71,\u6ec1\u5dde,\u961c\u9633,\u5bbf\u5dde,\u5de2\u6e56,\u516d\u5b89,\u4eb3\u5dde,\u6c60\u5dde,\u5ba3\u57ce", code34:"1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18", prov11:"\u4e1c\u57ce\u533a,\u897f\u57ce\u533a,\u5d07\u6587\u533a,\u5ba3\u6b66\u533a,\u671d\u9633\u533a,\u4e30\u53f0\u533a,\u77f3\u666f\u5c71\u533a,\u6d77\u6dc0\u533a,\u95e8\u5934\u6c9f\u533a,\u623f\u5c71\u533a,\u901a\u5dde\u533a,\u987a\u4e49\u533a,\u660c\u5e73\u533a,\u5927\u5174\u533a,\u6000\u67d4\u533a,\u5e73\u8c37\u533a,\u5bc6\u4e91\u53bf,\u5ef6\u5e86\u53bf", code11:"1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,28,29", prov50:"\u4e07\u5dde\u533a,\u6daa\u9675\u533a,\u6e1d\u4e2d\u533a,\u5927\u6e21\u53e3\u533a,\u6c5f\u5317\u533a,\u6c99\u576a\u575d\u533a,\u4e5d\u9f99\u5761\u533a,\u5357\u5cb8\u533a,\u5317\u789a\u533a,\u4e07\u76db\u533a,\u53cc\u6865\u533a,\u6e1d\u5317\u533a,\u5df4\u5357\u533a,\u9ed4\u6c5f\u533a,\u957f\u5bff\u533a,\u7da6\u6c5f\u53bf,\u6f7c\u5357\u53bf,\u94dc\u6881\u53bf,\u5927\u8db3\u53bf,\u8363\u660c\u53bf,\u74a7\u5c71\u53bf,\u6881\u5e73\u53bf,\u57ce\u53e3\u53bf,\u4e30\u90fd\u53bf,\u57ab\u6c5f\u53bf,\u6b66\u9686\u53bf,\u5fe0\u53bf,\u5f00\u53bf,\u4e91\u9633\u53bf,\u5949\u8282\u53bf,\u5deb\u5c71\u53bf,\u5deb\u6eaa\u53bf,\u77f3\u67f1\u571f\u5bb6\u65cf\u81ea\u6cbb\u53bf,\u79c0\u5c71\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u53bf,\u9149\u9633\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u53bf,\u5f6d\u6c34\u82d7\u65cf\u571f\u5bb6\u65cf\u81ea\u6cbb\u53bf,\u6c5f\u6d25\u533a,\u5408\u5ddd\u533a,\u6c38\u5ddd\u533a,\u5357\u5ddd\u533a", code50:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,42,43,81,82,83,84", prov35:"\u798f\u5dde,\u53a6\u95e8,\u8386\u7530,\u4e09\u660e,\u6cc9\u5dde,\u6f33\u5dde,\u5357\u5e73,\u9f99\u5ca9,\u5b81\u5fb7", code35:"1,2,3,4,5,6,7,8,9", prov62:"\u5170\u5dde,\u5609\u5cea\u5173,\u91d1\u660c,\u767d\u94f6,\u5929\u6c34,\u6b66\u5a01,\u5f20\u6396,\u5e73\u51c9,\u9152\u6cc9,\u5e86\u9633,\u5b9a\u897f,\u9647\u5357,\u4e34\u590f,\u7518\u5357", code62:"1,2,3,4,5,6,7,8,9,10,24,26,29,30", prov44:"\u5e7f\u5dde,\u97f6\u5173,\u6df1\u5733,\u73e0\u6d77,\u6c55\u5934,\u4f5b\u5c71,\u6c5f\u95e8,\u6e5b\u6c5f,\u8302\u540d,\u8087\u5e86,\u60e0\u5dde,\u6885\u5dde,\u6c55\u5c3e,\u6cb3\u6e90,\u9633\u6c5f,\u6e05\u8fdc,\u4e1c\u839e,\u4e2d\u5c71,\u6f6e\u5dde,\u63ed\u9633,\u4e91\u6d6e", code44:"1,2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,51,52,53", prov45:"\u5357\u5b81,\u67f3\u5dde,\u6842\u6797,\u68a7\u5dde,\u5317\u6d77,\u9632\u57ce\u6e2f,\u94a6\u5dde,\u8d35\u6e2f,\u7389\u6797,\u767e\u8272,\u8d3a\u5dde,\u6cb3\u6c60,\u6765\u5bbe,\u5d07\u5de6", code45:"1,22,3,4,5,6,7,8,9,10,11,12,13,14", prov52:"\u8d35\u9633,\u516d\u76d8\u6c34,\u9075\u4e49,\u5b89\u987a,\u94dc\u4ec1,\u9ed4\u897f\u5357,\u6bd5\u8282,\u9ed4\u4e1c\u5357,\u9ed4\u5357", code52:"1,2,3,4,22,23,24,26,27", prov46:"\u6d77\u53e3,\u4e09\u4e9a,\u5176\u4ed6", code46:"1,2,90", prov13:"\u77f3\u5bb6\u5e84,\u5510\u5c71,\u79e6\u7687\u5c9b,\u90af\u90f8,\u90a2\u53f0,\u4fdd\u5b9a,\u5f20\u5bb6\u53e3,\u627f\u5fb7,\u6ca7\u5dde,\u5eca\u574a,\u8861\u6c34", code13:"1,2,3,4,5,6,7,8,9,10,11", prov23:"\u54c8\u5c14\u6ee8,\u9f50\u9f50\u54c8\u5c14,\u9e21\u897f,\u9e64\u5c97,\u53cc\u9e2d\u5c71,\u5927\u5e86,\u4f0a\u6625,\u4f73\u6728\u65af,\u4e03\u53f0\u6cb3,\u7261\u4e39\u6c5f,\u9ed1\u6cb3,\u7ee5\u5316,\u5927\u5174\u5b89\u5cad", code23:"1,2,3,4,5,6,7,8,9,10,11,12,27", prov41:"\u90d1\u5dde,\u5f00\u5c01,\u6d1b\u9633,\u5e73\u9876\u5c71,\u5b89\u9633,\u9e64\u58c1,\u65b0\u4e61,\u7126\u4f5c,\u6fee\u9633,\u8bb8\u660c,\u6f2f\u6cb3,\u4e09\u95e8\u5ce1,\u5357\u9633,\u5546\u4e18,\u4fe1\u9633,\u5468\u53e3,\u9a7b\u9a6c\u5e97,\u6d4e\u6e90", code41:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18", prov42:"\u6b66\u6c49,\u9ec4\u77f3,\u5341\u5830,\u5b9c\u660c,\u8944\u9633,\u9102\u5dde,\u8346\u95e8,\u5b5d\u611f,\u8346\u5dde,\u9ec4\u5188,\u54b8\u5b81,\u968f\u5dde,\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde,\u4ed9\u6843,\u6f5c\u6c5f,\u5929\u95e8,\u795e\u519c\u67b6", code42:"1,2,3,5,6,7,8,9,10,11,12,13,28,29,30,31,32", prov43:"\u957f\u6c99,\u682a\u6d32,\u6e58\u6f6d,\u8861\u9633,\u90b5\u9633,\u5cb3\u9633,\u5e38\u5fb7,\u5f20\u5bb6\u754c,\u76ca\u9633,\u90f4\u5dde,\u6c38\u5dde,\u6000\u5316,\u5a04\u5e95,\u6e58\u897f\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde", code43:"1,2,3,4,5,6,7,8,9,10,11,12,13,31", prov15:"\u547c\u548c\u6d69\u7279,\u5305\u5934,\u4e4c\u6d77,\u8d64\u5cf0,\u901a\u8fbd,\u9102\u5c14\u591a\u65af,\u547c\u4f26\u8d1d\u5c14,\u5174\u5b89\u76df,\u9521\u6797\u90ed\u52d2\u76df,\u4e4c\u5170\u5bdf\u5e03\u76df,\u5df4\u5f66\u6dd6\u5c14\u76df,\u963f\u62c9\u5584\u76df", code15:"1,2,3,4,5,6,7,22,25,26,28,29", prov32:"\u5357\u4eac,\u65e0\u9521,\u5f90\u5dde,\u5e38\u5dde,\u82cf\u5dde,\u5357\u901a,\u8fde\u4e91\u6e2f,\u6dee\u5b89,\u76d0\u57ce,\u626c\u5dde,\u9547\u6c5f,\u6cf0\u5dde,\u5bbf\u8fc1", code32:"1,2,3,4,5,6,7,8,9,10,11,12,13", prov36:"\u5357\u660c,\u666f\u5fb7\u9547,\u840d\u4e61,\u4e5d\u6c5f,\u65b0\u4f59,\u9e70\u6f6d,\u8d63\u5dde,\u5409\u5b89,\u5b9c\u6625,\u629a\u5dde,\u4e0a\u9976", code36:"1,2,3,4,5,6,7,8,9,10,11", prov22:"\u957f\u6625,\u5409\u6797,\u56db\u5e73,\u8fbd\u6e90,\u901a\u5316,\u767d\u5c71,\u677e\u539f,\u767d\u57ce,\u5ef6\u8fb9\u671d\u9c9c\u65cf\u81ea\u6cbb\u5dde", code22:"1,2,3,4,5,6,7,8,24", prov21:"\u6c88\u9633,\u5927\u8fde,\u978d\u5c71,\u629a\u987a,\u672c\u6eaa,\u4e39\u4e1c,\u9526\u5dde,\u8425\u53e3,\u961c\u65b0,\u8fbd\u9633,\u76d8\u9526,\u94c1\u5cad,\u671d\u9633,\u846b\u82a6\u5c9b", code21:"1,2,3,4,5,6,7,8,9,10,11,12,13,14", prov64:"\u94f6\u5ddd,\u77f3\u5634\u5c71,\u5434\u5fe0,\u56fa\u539f,\u4e2d\u536b", code64:"1,2,3,4,5", prov63:"\u897f\u5b81,\u6d77\u4e1c,\u6d77\u5317,\u9ec4\u5357,\u6d77\u5357,\u679c\u6d1b,\u7389\u6811,\u6d77\u897f", code63:"1,21,22,23,25,26,27,28", prov14:"\u592a\u539f,\u5927\u540c,\u9633\u6cc9,\u957f\u6cbb,\u664b\u57ce,\u6714\u5dde,\u664b\u4e2d,\u8fd0\u57ce,\u5ffb\u5dde,\u4e34\u6c7e,\u5415\u6881", code14:"1,2,3,4,5,6,7,8,9,10,23", prov37:"\u6d4e\u5357,\u9752\u5c9b,\u6dc4\u535a,\u67a3\u5e84,\u4e1c\u8425,\u70df\u53f0,\u6f4d\u574a,\u6d4e\u5b81,\u6cf0\u5b89,\u5a01\u6d77,\u65e5\u7167,\u83b1\u829c,\u4e34\u6c82,\u5fb7\u5dde,\u804a\u57ce,\u6ee8\u5dde,\u83cf\u6cfd", code37:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17", prov31:"\u9ec4\u6d66\u533a,\u5362\u6e7e\u533a,\u5f90\u6c47\u533a,\u957f\u5b81\u533a,\u9759\u5b89\u533a,\u666e\u9640\u533a,\u95f8\u5317\u533a,\u8679\u53e3\u533a,\u6768\u6d66\u533a,\u95f5\u884c\u533a,\u5b9d\u5c71\u533a,\u5609\u5b9a\u533a,\u6d66\u4e1c\u65b0\u533a,\u91d1\u5c71\u533a,\u677e\u6c5f\u533a,\u9752\u6d66\u533a,\u5357\u6c47\u533a,\u5949\u8d24\u533a,\u5d07\u660e\u53bf", code31:"1,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,30", prov51:"\u6210\u90fd,\u81ea\u8d21,\u6500\u679d\u82b1,\u6cf8\u5dde,\u5fb7\u9633,\u7ef5\u9633,\u5e7f\u5143,\u9042\u5b81,\u5185\u6c5f,\u4e50\u5c71,\u5357\u5145,\u7709\u5c71,\u5b9c\u5bbe,\u5e7f\u5b89,\u8fbe\u5dde,\u96c5\u5b89,\u5df4\u4e2d,\u8d44\u9633,\u963f\u575d,\u7518\u5b5c,\u51c9\u5c71", code51:"1,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,32,33,34", prov12:"\u548c\u5e73\u533a,\u6cb3\u4e1c\u533a,\u6cb3\u897f\u533a,\u5357\u5f00\u533a,\u6cb3\u5317\u533a,\u7ea2\u6865\u533a,\u5858\u6cbd\u533a,\u6c49\u6cbd\u533a,\u5927\u6e2f\u533a,\u4e1c\u4e3d\u533a,\u897f\u9752\u533a,\u6d25\u5357\u533a,\u5317\u8fb0\u533a,\u6b66\u6e05\u533a,\u5b9d\u577b\u533a,\u5b81\u6cb3\u53bf,\u9759\u6d77\u53bf,\u84df\u53bf,\u6ee8\u6d77\u65b0\u533a,\u4fdd\u7a0e\u533a", code12:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,21,23,25,26,27", prov54:"\u62c9\u8428,\u660c\u90fd,\u5c71\u5357,\u65e5\u5580\u5219,\u90a3\u66f2,\u963f\u91cc,\u6797\u829d", code54:"1,21,22,23,24,25,26", prov65:"\u4e4c\u9c81\u6728\u9f50,\u514b\u62c9\u739b\u4f9d,\u5410\u9c81\u756a,\u54c8\u5bc6,\u660c\u5409,\u535a\u5c14\u5854\u62c9,\u5df4\u97f3\u90ed\u695e,\u963f\u514b\u82cf,\u514b\u5b5c\u52d2\u82cf,\u5580\u4ec0,\u548c\u7530,\u4f0a\u7281,\u5854\u57ce,\u963f\u52d2\u6cf0,\u77f3\u6cb3\u5b50", code65:"1,2,21,22,23,27,28,29,30,31,32,40,42,43,44", prov53:"\u6606\u660e,\u66f2\u9756,\u7389\u6eaa,\u4fdd\u5c71,\u662d\u901a,\u695a\u96c4,\u7ea2\u6cb3,\u6587\u5c71,\u601d\u8305,\u897f\u53cc\u7248\u7eb3,\u5927\u7406,\u5fb7\u5b8f,\u4e3d\u6c5f,\u6012\u6c5f,\u8fea\u5e86,\u4e34\u6ca7", code53:"1,3,4,5,6,23,25,26,27,28,29,31,32,33,34,35", prov33:"\u676d\u5dde,\u5b81\u6ce2,\u6e29\u5dde,\u5609\u5174,\u6e56\u5dde,\u7ecd\u5174,\u91d1\u534e,\u8862\u5dde,\u821f\u5c71,\u53f0\u5dde,\u4e3d\u6c34", code33:"1,2,3,4,5,6,7,8,9,10,11", prov61:"\u897f\u5b89,\u94dc\u5ddd,\u5b9d\u9e21,\u54b8\u9633,\u6e2d\u5357,\u5ef6\u5b89,\u6c49\u4e2d,\u6986\u6797,\u5b89\u5eb7,\u5546\u6d1b", code61:"1,2,3,4,5,6,7,8,9,10", prov71:"\u53f0\u5317\u5e02,\u9ad8\u96c4\u5e02,\u57fa\u9686\u5e02,\u53f0\u4e2d\u5e02,\u53f0\u5357\u5e02,\u65b0\u7af9\u5e02,\u5609\u4e49\u5e02,\u53f0\u5317\u53bf,\u5b9c\u5170\u53bf,\u6843\u56ed\u53bf,\u65b0\u7af9\u53bf,\u82d7\u6817\u53bf,\u53f0\u4e2d\u53bf,\u5f70\u5316\u53bf,\u5357\u6295\u53bf,\u4e91\u6797\u53bf,\u5609\u4e49\u53bf,\u53f0\u5357\u53bf,\u9ad8\u96c4\u53bf,\u5c4f\u4e1c\u53bf,\u6f8e\u6e56\u53bf,\u53f0\u4e1c\u53bf,\u82b1\u83b2\u53bf,\u5176\u4ed6", code71:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,90", prov81:"\u4e2d\u897f\u533a,\u4e1c\u533a,\u4e5d\u9f99\u57ce\u533a,\u89c2\u5858\u533a,\u5357\u533a,\u6df1\u6c34\u57d7\u533a,\u9ec4\u5927\u4ed9\u533a,\u6e7e\u4ed4\u533a,\u6cb9\u5c16\u65fa\u533a,\u79bb\u5c9b\u533a,\u8475\u9752\u533a,\u5317\u533a,\u897f\u8d21\u533a,\u6c99\u7530\u533a,\u5c6f\u95e8\u533a,\u5927\u57d4\u533a,\u8343\u6e7e\u533a,\u5143\u6717\u533a,\u5176\u4ed6", code81:"2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1", prov82:"\u82b1\u5730\u739b\u5802\u533a,\u5723\u5b89\u591a\u5c3c\u5802\u533a,\u5927\u5802\u533a,\u671b\u5fb7\u5802\u533a,\u98ce\u987a\u5802\u533a,\u6c39\u4ed4,\u8def\u73af,\u5176\u4ed6", code82:"2,3,4,5,6,7,8,1", prov400:"\u7f8e\u56fd,\u82f1\u56fd,\u6cd5\u56fd,\u4fc4\u7f57\u65af,\u52a0\u62ff\u5927,\u5df4\u897f,\u6fb3\u5927\u5229\u4e9a,\u5370\u5c3c,\u6cf0\u56fd,\u9a6c\u6765\u897f\u4e9a,\u65b0\u52a0\u5761,\u83f2\u5f8b\u5bbe,\u8d8a\u5357,\u5370\u5ea6,\u65e5\u672c,\u65b0\u897f\u5170,\u97e9\u56fd,\u5fb7\u56fd,\u610f\u5927\u5229,\u7231\u5c14\u5170,\u8377\u5170,\u745e\u58eb,\u4e4c\u514b\u5170,\u5357\u975e,\u82ac\u5170,\u745e\u5178,\u5965\u5730\u5229,\u897f\u73ed\u7259,\u6bd4\u5229\u65f6,\u632a\u5a01,\u4e39\u9ea6,\u6ce2\u5170,\u963f\u6839\u5ef7,\u767d\u4fc4\u7f57\u65af,\u54e5\u4f26\u6bd4\u4e9a,\u53e4\u5df4,\u57c3\u53ca,\u5e0c\u814a,\u5308\u7259\u5229,\u4f0a\u6717,\u8499\u53e4,\u58a8\u897f\u54e5,\u8461\u8404\u7259,\u6c99\u7279\u963f\u62c9\u4f2f,\u571f\u8033\u5176,\u5176\u4ed6", code400:"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,16", prov100:"", code100:"", provinces:"\u5b89\u5fbd,\u5317\u4eac,\u91cd\u5e86,\u798f\u5efa,\u7518\u8083,\u5e7f\u4e1c,\u5e7f\u897f,\u8d35\u5dde,\u6d77\u5357,\u6cb3\u5317,\u9ed1\u9f99\u6c5f,\u6cb3\u5357,\u6e56\u5317,\u6e56\u5357,\u5185\u8499\u53e4,\u6c5f\u82cf,\u6c5f\u897f,\u5409\u6797,\u8fbd\u5b81,\u5b81\u590f,\u9752\u6d77,\u5c71\u897f,\u5c71\u4e1c,\u4e0a\u6d77,\u56db\u5ddd,\u5929\u6d25,\u897f\u85cf,\u65b0\u7586,\u4e91\u5357,\u6d59\u6c5f,\u9655\u897f,\u53f0\u6e7e,\u9999\u6e2f,\u6fb3\u95e8,\u6d77\u5916,\u5176\u4ed6", provcodes:"34,11,50,35,62,44,45,52,46,13,23,41,42,43,15,32,36,22,21,64,63,14,37,31,51,12,54,65,53,33,61,71,81,82,400,100"};
	var e = function (h) {
		this.init(h);
	};
	(function (h) {
		h.init = function (m) {
			var j = "0", l = "1000", n = "1000";
			this.provDom = m.provDom;
			this.cityDom = m.cityDom;
			this.areaDom = m.areaDom;
			this.provDom && (j = this.provDom.getAttribute("defValue") || "0");
			this.cityDom && (l = this.cityDom.getAttribute("defValue") || "1000");
			this.areaDom && (n = this.areaDom.getAttribute("defValue") || "1000");
			this.provCode = m.provCode || j;
			this.cityCode = m.cityCode || l;
			this.areaCode = m.areaCode || n;
			this.noLimit = m.noLimit;
			this.badDesign = m.badDesign;
			this.onSelected = m.onSelected || function () {
			};
			this.loadProv();
			this.loadCity();
			this.loadArea();
			this.bindEvent("prov");
			this.bindEvent("city");
			this.bindEvent("area");
		};
		h.onChange = function (m) {
			var l = {prov:"city", city:"area"};
			var n = this;
			var j = l[m] + "Code";
			return function () {
				n[m + "Code"] = n[m + "Dom"].value;
				if (m !== "area") {
					if (!n.noLimit) {
						n[j] = 1000;
					} else {
						if (n.noLimit[l[m]]) {
							n[j] = 1;
						} else {
							n[j] = 1000;
						}
					}
					(m === "prov") && n.loadCity();
					(n.areaDom) && n.loadArea();
				}
				n.onSelected({provCode:n.provDom ? n.provCode : "", cityCode:n.cityDom ? n.cityCode : "", areaCode:n.areaDom ? n.areaCode : ""});
			};
		};
		h.bindEvent = function (j) {
			if (!this[j + "Dom"]) {
				return;
			}
			if (this[j + "handler"]) {
				f.removeEvent(this[j + "Dom"], "change", this[j + "handler"]);
			}
			this[j + "handler"] = this.onChange(j);
			f.addEvent(this[j + "Dom"], "change", this[j + "handler"]);
		};
		h.loadProv = function () {
			if (!this.provDom) {
				return;
			}
			var l = this.provDom.options;
			var n = b.provcodes.split(",");
			var m = b.provinces.split(",");
			if (l.length <= 1) {
				if (!(this.noLimit && this.noLimit.province)) {
					l[0] = new Option(g("#L{\u7701/\u76f4\u8f96\u5e02}"), 0);
				}
				for (var o = 0, j = n.length; o < j; o++) {
					l[l.length] = new Option(g("#L{" + m[o] + "}"), n[o]);
				}
			}
			if (f.findout(n, this.provCode) != -1) {
				this.provDom.value = this.provCode;
			} else {
				this.provDom.value = 0;
			}
		};
		h.loadCity = function () {
			if (!this.cityDom) {
				return;
			}
			if (this.provCode == "100" && !this.badDesign) {
				f.setStyle(this.cityDom, "display", "none");
				this.cityDom.disabled = true;
				return false;
			} else {
				this.cityDom.disabled = false;
				f.setStyle(this.cityDom, "display", "");
			}
			var o = this.cityDom.options;
			while (o.length) {
				this.cityDom.remove(0);
			}
			var l = b["code" + this.provCode].split(",");
			var n = b["prov" + this.provCode].split(",");
			if (!(this.noLimit && this.noLimit.city)) {
				o[0] = new Option(g("#L{\u4e0d\u9650}"), 1000);
			}
			for (var m = 0, j = l.length; m < j; m++) {
				if (n[m] && l[m]) {
					o[o.length] = new Option(g("#L{" + n[m] + "}"), l[m]);
				}
			}
			if (f.findout(l, this.cityCode).length > 0) {
				this.cityDom.value = this.cityCode;
			} else {
				if (!this.noLimit) {
					this.cityDom.value = 1000;
				} else {
					if (this.noLimit.city) {
						this.cityDom.value = 1;
					}
				}
			}
		};
		h.loadArea = function () {
			if (!this.areaDom) {
				return;
			}
			var j = this.areaDom.options;
			while (j.length) {
				this.areaDom.remove(0);
			}
			var l = this;
			if (!a[l.provCode + "_" + l.cityCode]) {
				f.common.trans.setting.regComplate("getarea", function (m, n) {
					l.displayarea(m.data, j, l.noLimit);
					a[l.provCode + "_" + l.cityCode] = m.data;
				});
				f.common.trans.setting.request("getarea", {province:this.provDom.value, city:this.cityDom.value});
			} else {
				this.displayarea(a[this.provCode + "_" + this.cityCode], j, l.noLimit);
			}
		};
		h.displayarea = function (q, p, m) {
			if (!q || !q.length) {
				f.setStyle(this.areaDom, "display", "none");
				return false;
			}
			if (!(m && m.area)) {
				p[0] = new Option(g("#L{\u9009\u62e9\u533a\u53bf}"), 1000);
			}
			for (var n = 0, l = q.length; n < l; n++) {
				var j = q[n]["value"];
				var o = q[n]["text"];
				if (o && j) {
					p[p.length] = new Option(g("#L{" + o + "}"), j);
				}
			}
			f.setStyle(this.areaDom, "display", "");
		};
		h.reload = function (j) {
			this.init(j);
		};
		h.refresh = function (j) {
			this.provCode = j.pro;
			this.provDom.value = j.pro;
			this.loadCity();
			this.cityDom.value = j.city;
		};
	})(e.prototype);
	return function (h) {
		return new e(h);
	};
});
STK.register("common.alert", function (h) {
	var f = h.common.language;
	var b = "<div class=\"commonLayer2\" node-type=\"outer\">\t\t<div class=\"layerL\"><img node-type=\"icon\" src=\"" + $CONFIG.$BASECSS + "style/images/common/PY_ib.gif\"></div>\t\t<div style=\"width: 284px;\" class=\"layerR\">\t\t\t<p class=\"txt font_14\" node-type=\"inner\"></p>\t\t\t<div class=\"MIB_btn\"> <a href=\"javascript:void(0);\" class=\"btn_normal\" node-type=\"btn\"><em>#L{\u786e\u5b9a}</em></a> </div>\t\t</div>\t\t<div class=\"clearit\"></div>\t</div>";
	var a = {warning:"PY_ib PY_ib_1", error:"PY_ib PY_ib_2", success:"PY_ib PY_ib_3", doubt:"PY_ib PY_ib_4"};
	var g = [];
	var j = function () {
		var l = {};
		var m = null;
		l.template = f(b);
		l.onOpen = function () {
			m.inUsed = true;
		};
		l.onClose = function () {
			m.inUsed = false;
			if (m.OKFunction) {
				m.OKFunction();
			}
			m.OKFunction = null;
		};
		m = h.common.customDialog(l);
		h.addEvent(m.getDom("btn"), "click", function () {
			m.close();
			return false;
		});
		return m;
	};
	var e = function () {
		for (var l = 0; l < g.length; l += 1) {
			if (!g[l]["inUsed"]) {
				return g[l];
			}
		}
		var m = j();
		g.push(m);
		return m;
	};
	return function (l) {
		if (typeof l === "string") {
			var n = l;
			l = {text:n};
		}
		var m = e();
		if (typeof l.text === "string") {
			m.text(l.text);
		}
		if (typeof l.html === "string") {
			m.html(l.html);
		}
		if (l.OK) {
			m.OKFunction = l.OK;
		}
		if (!l.icon) {
			l.icon = "warning";
		}
		m.getDom("icon").className = a[l.icon];
		m.setMiddle().open(l.from || null).setTitle(l.title || f("#L{\u63d0\u793a}"));
		return m;
	};
});
STK.register("tool.ui.scroll", function (a) {
	return function (b) {
		var e = false;
		var g = b.ele || document.documentElement;
		var f = function () {
			return b.ele ? a.core.dom.position(b.ele) : {t:0, l:0};
		};
		var h = {};
		h.to = function (j) {
			var n = a.core.dom.position(j)["t"] - f()["t"] - (b.toTop || 0);
			var m = g.scrollTop;
			if (n < 0) {
				n = 0;
			}
			var l = a.core.util.timer.add(function () {
				g.scrollTop = m + (n - m) / 5;
				m = g.scrollTop;
				if (Math.abs(n - m) <= 4 || m === 0) {
					g.scrollTop = n;
					a.core.util.timer.remove(l);
				}
			});
		};
		return h;
	};
});
STK.register("common.sysmsg", function (a) {
	var b = {A00001:"\u5f88\u62b1\u6b49\uff0c\u6839\u636e\u76f8\u5173\u6cd5\u89c4\u548c\u653f\u7b56\uff0c\u6b64\u529f\u80fd\u6b63\u5728\u7ef4\u62a4\u4e2d\uff0c\u4f1a\u5c3d\u5feb\u6062\u590d\u3002\u5982\u9700\u5e2e\u52a9\u8bf7\u8054\u7cfb@\u5fae\u535a\u5c0f\u79d8\u4e66 \u6216\u8005\u81f4\u7535\u5ba2\u670d\u7535\u8bdd400 690 0000\u3002", A00003:"\u65e0\u6743\u9650\u64cd\u4f5c\u3002", A00006:"\u4fdd\u5b58\u6210\u529f", E00001:"\u7cfb\u7edf\u7e41\u5fd9", E00002:"\u53c2\u6570\u9519\u8bef", E00003:"\u6743\u9650\u9519\u8bef", M00003:"\u4f60\u5c1a\u672a\u767b\u5f55\u6216\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55\u3002", M00004:"\u7cfb\u7edf\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002", M00009:"\u53c2\u6570\u9519\u8bef", M01161:"\u670d\u52a1\u5668\u5ea6\u5047\u4e2d\uff0c\u8bf7\u9694\u5929\u518d\u8bd5 ", M01120:"\u542b\u6709\u975e\u6cd5\u5b57\u7b26\uff0c\u8bf7\u4fee\u6539"};
	return function (f, h) {
		h = h || false;
		var e, g;
		if (typeof f == "object") {
			g = f.msg || "";
			f = f.code || "";
		}
		if (typeof h == "object") {
			e = h[f];
		}
		if (!e) {
			e = b[f];
		}
		return a.common.language(["#L{", (g || e || b.E00001), "}"].join(""));
	};
});
STK.register("module.bubble", function (f) {
	var b = "<div node-type=\"outer\" style=\"visibility:hidden\"></div>", e;
	var a = function (g, s, r, p) {
		var j = Math.max(g, s), h = Math.min(g, s), q = [j], l = j - h, o = 1;
		q[r] = h;
		for (o; o < r; o++) {
			q[o] = (l = l / p) + h;
		}
		return g > s ? q : q.reverse();
	};
	return function (p) {
		var r = f.parseParam({l:0, t:0, w:200, h:20, count:8, sor:f.IE ? 1.5 : 1.2, gap:20, zIndex:500, alphaTo:0.8, alphaFrom:0.05, template:b, wipe:"pop", backgroundColor:"#ffffff", border:"1px solid #000000", boxShadowFrom:10, boxShadowTo:50, borderRadius:"3px"}, p || {});
		var A = document.body, y = f.builder(r.template), z = y.list, g = z.outer[0], t = ["position:absolute;background-color:", r.backgroundColor, ";z-index:", r.zIndex, ";border:", r.border, ";"].join(""), h = ["-moz-border-radius:", r.borderRadius, ";-webkit-border-radius:", r.borderRadius, "-o-border-radius:", r.borderRadius, ";"].join(""), B, q, u, j, C, v, o, w, D, l;
		var n = function () {
			var E = [t, "left:", (q[o] == e ? r.l : q[o]), "px;", "top:", (u[o] == e ? r.t : u[o]), "px;", "width:", (j[o] == e ? r.w : j[o]), "px;", "height:", (C[o] == e ? r.h : C[o]), "px;", "filter:alpha(opacity=", (B[o] * 100), ");", "opacity:", B[o], ";", h, v[o]];
			g.style.cssText = E.join("");
			if (o == (w > 0 ? r.count : 0)) {
				clearInterval(D);
				g.style.visibility = "hidden";
				if (typeof l == "function") {
					l();
				}
				return;
			}
			o += w;
		};
		var s = function () {
			if (o == null) {
				o = w > 0 ? 0 : r.count;
			}
			clearInterval(D);
			D = setInterval(n, r.gap);
		};
		var x = {};
		x.pop = function () {
			j = a(0, r.w, r.count, r.sor);
			C = a(0, r.h, r.count, r.sor);
			q = f.foreach(j, function (F, E) {
				return (r.w - F) / 2 + r.l;
			});
			u = f.foreach(C, function (F, E) {
				return (r.h - F) / 2 + r.t;
			});
		};
		x.up = function () {
			q = j = [];
			C = a(0, r.h, r.count, r.sor);
			u = f.foreach(C, function (E) {
				return r.t + r.h - E;
			});
		};
		x.down = function () {
			q = j = u = [];
			C = a(0, r.h, r.count, r.sor);
		};
		x.left = function () {
			u = C = [];
			j = a(0, r.w, r.count, r.sor);
			q = f.foreach(j, function (E) {
				return r.l + r.w - E;
			});
		};
		x.right = function () {
			u = C = q = [];
			j = a(0, r.w, r.count, r.sor);
			B = a(r.alphaFrom, r.alphaTo, r.count, r.sor);
		};
		var m = {};
		(m.rect = function (H, G, E, F) {
			r = f.parseParam(r, {l:H, t:G, w:E, h:F});
			x[r.wipe]();
			B = a(r.alphaFrom, r.alphaTo, r.count, r.sor);
			v = f.foreach(a(r.boxShadowFrom, r.boxShadowTo, r.count, r.sor), function (J) {
				var I = ["0 0 ", Math.ceil(J), "px #777"].join("");
				return ["-moz-box-shadow:", I, ";-webkit-box-shadow:", I, ";box-shadow:", I, ";"].join("");
			});
		})();
		m.show = function (E) {
			l = E;
			w = 1;
			s();
		};
		m.hidden = function (E) {
			l = E;
			w = -1;
			s();
		};
		A.appendChild(g);
		return m;
	};
});
STK.register("common.bubble", function (e) {
	var a = "<div node-type=\"outer\" class=\"miniPopLayer\" style=\"visibility:hidden;\">\t\t\t\t<div node-type=\"arrow\"></div>\t\t\t    <div class=\"txt1 gray6\">\t\t\t        <img class=\"tipicon tip1\" node-type=\"icon\" src=\"" + $CONFIG.$BASECSS + "style/images/common/PY_ib.gif\"/>\t\t\t        <div node-type=\"inner\"></div>\t\t\t    </div>\t\t</div>";
	var b = {doubt:4, error:2, success:3, warning:1};
	return function (t) {
		var n = e.parseParam({l:100, t:100, zIndex:500, icon:"warning", content:"<div style=\"width:200px\">\u3000</div>", template:a, wipe:"pop"}, t || {});
		var o = false, m, h, x, f = e.builder(n.template), l = f.list, q = (l.icon || [])[0], s = (l.arrow || [])[0], u = l.outer[0], w = l.inner[0], p = e.module.bubble({zIndex:n.zIndex - 1, wipe:n.wipe}), v = function () {
			var y = {};
			if (u.style.display == "none") {
				u.style.visibility = "hidden";
				u.style.display = "";
				y.w = u.offsetWidth;
				y.h = u.offsetHeight;
				u.style.display = "none";
				u.style.visibility = "visible";
			} else {
				y.w = u.offsetWidth;
				y.h = u.offsetHeight;
			}
			return y;
		}, r = function () {
			u.style.visibility = "visible";
		}, j = function () {
			u.style.visibility = "hidden";
		};
		(m = function (y) {
			if (!o) {
				o = true;
				document.body.appendChild(u);
			}
			e.parseParam(n, {content:y});
			w.innerHTML = n.content;
			setTimeout(function () {
				var z = v();
				e.parseParam(n, {w:z.w, h:z.h});
				p.rect(n.l, n.t, z.w, z.h);
			}, 0);
		})(n.content);
		(h = function (y) {
			n = e.parseParam(n, y);
			u.style.cssText = ["clear:both;position:absolute;visibility:hidden;left:", n.l, "px;top:", n.t, "px;z-index:", n.zIndex].join("");
			if (y.l == n.l && y.t == n.t) {
				return;
			}
			p.rect(n.l, n.t, n.w, n.h);
		})(n.l, n.t);
		x = function () {
			var z = e.core.util.winSize();
			var y = v();
			h({l:(z.width - y.w) / 2, t:e.core.util.scrollPos()["top"] + ((z.height - y.h) / 2)});
		};
		var g = {};
		g.content = m;
		g.position = h;
		g.middle = x;
		g.dom = f;
		g.getSize = v;
		g.show = function () {
			p.show(r);
		};
		g.hidden = function () {
			j();
			p.hidden();
		};
		(g.icon = function (y) {
			if (!q) {
				return;
			}
			q.className = ["tipicon tip", b[y]].join("");
		})(n.icon);
		g.arrow = function (y) {
			if (!s) {
				return;
			}
			s.style.cssText = ["display:block;background-image:url(", $CONFIG.$BASEIMG, "style/images/common/poptips/poparrow.png);_background-image:url(", $CONFIG.$BASEIMG, "style/images/common/poptips/poparrow.gif); background-repeat:no-repeat;overflow:hidden;position:absolute;", {up:"background-position:0 0;width:17px;height:8px; margin-left:-9px; left:50%; top:-8px", right:"background-position:-30px 0;width:10px;height:18px; right:-10px;top:50%; margin-top:-9px", down:"background-position:0 -20px;width:19px;height:10px;margin-left:-9px; left:50%; bottom:-10px;", left:"background-position:-32px -20px;width:9px;height:20px; left:-8px; top:50%; margin-top:-10px"}[y || "up"]].join("");
		};
		return g;
	};
});
STK.register("common.enterSubmit", function (a) {
	return function (e) {
		if (typeof e.parent === "string") {
			var b = a.E(e.parent);
		} else {
			var b = e.parent;
		}
		var g = function () {
			var l = a.getEvent();
			var n = l.keyCode;
			var m = e.action || null;
			if (n === 13 && m) {
				try {
					if (typeof m === "string") {
						evel("(" + m + ")();");
					} else {
						if (typeof m === "function") {
							m();
						}
					}
				}
				catch (o) {
				}
			}
		};
		if (b) {
			var h = b.getElementsByTagName("input");
			if (h.length != 0) {
				for (var f = 0; f < h.length; f++) {
					var j = h[f];
					a.addEvent(j, "keydown", g);
				}
			} else {
				a.addEvent(b, "keydown", g);
			}
		}
	};
});
STK.register("common.verifyCode", function (f) {
	var g = f.common.language;
	var e = $CONFIG.$lang.replace("-", "_");
	var a = "<div node-type=\"outer\" class=\"auth_code\">\t\t<div class=\"auth_img\" node-type=\"inner\" style=\"width:450px;\"><img width=\"450\" height=\"50\" node-type=\"doorimg\"><div style=\"text-align:right;padding:3px 0 0 0;\"><a href=\"javascript:void(0);\" node-type=\"change\"></a></div></div>\t\t<p class=\"tips\" node-type=\"tips\"></p>\t\t<div class=\"code_input\"><input type=\"text\" value=\"\" node-type=\"doorinput\"></div>\t\t<p class=\"errorTs error_color\" style=\"display:none;\" node-type=\"doorerror\"></p>\t\t<p class=\"btn\"><a class=\"btn_normal\" href=\"javascript:void(0);\" node-type=\"doorsubmit\"><em>" + g("#L{\u786e\u5b9a}") + "</em></a> <a class=\"btn_normal\" href=\"javascript:void(0);\" node-type=\"doorcancel\"><em>" + g("#L{\u53d6\u6d88}") + "</em></a></p>\t\t<div class=\"change_lan\"><a href=\"javascript:void(0);\" node-type=\"cn\">" + g("#L{\u7b80\u4f53\u4e2d\u6587}") + "</a><em class=\"line\">|</em><a href=\"javascript:void(0);\" node-type=\"tw\">" + g("#L{\u7e41\u4f53\u4e2d\u6587}") + "</a></div>\t\t</div>";
	var b = function (j) {
		var p = null;
		var l = {};
		var o = null;
		l.cb = j.cb;
		l.type = j.type;
		l.template = a;
		l.onOpen = function () {
			p.inUsed = true;
		};
		l.onClose = function () {
			if (p.cancelFunction && !p.applyClick) {
				p.cancelFunction();
			}
			p.cancelFunction = null;
			p.applyFunction = null;
			p.applyClick = null;
			p.inUsed = false;
		};
		p = f.common.customDialog(l);
		p.setStyle("width:auto");
		var h = function () {
			var q = "http://weibo.com/aj3/pincode/pin1.php?lang=zh-tw&rule&r=" + Math.random() * 10;
			setTimeout(function () {
				p.getDom("doorimg").src = q;
			}, 200);
		};
		h();
		var m = function (q) {
			var r = {change:["\u6362\u4e00\u6362", "\u63db\u4e00\u63db"], tips:["\u8bf7\u56de\u7b54\u56fe\u7247\u4e2d\u7684\u95ee\u9898\u3002<br />\u5982\u679c\u662f\u6570\u5b66\u9898\uff0c\u8bf7\u7528<em class=\"error_color\">\u6570\u5b57\uff080123456789\uff09</em>\u56de\u7b54\u3002", "\u8acb\u56de\u7b54\u5716\u7247\u4e2d\u7684\u554f\u984c\u3002<br />\u5982\u679c\u662f\u6578\u5b78\u984c\uff0c\u8acb\u7528<em class=\"error_color\">\u6578\u5b57\uff080123456789\uff09</em>\u56de\u7b54\u3002"], doorerror:["\u7b54\u6848\u9519\u8bef\uff0c\u8bf7\u91cd\u65b0\u56de\u7b54\uff0c\u6216\u6362\u4e00\u9053\u9898\u56de\u7b54\u3002", "\u7b54\u6848\u932f\u8aa4\uff0c\u8acb\u91cd\u65b0\u56de\u7b54\uff0c\u6216\u63db\u4e00\u9053\u984c\u56de\u7b54\u3002"], doorsubmit:["<em>\u786e\u5b9a</em>", "<em>\u78ba\u5b9a</em>"]};
			for (var s in r) {
				if (q == "zh_cn") {
					p.setTitle("\u9ad8\u7ea7\u9a8c\u8bc1\u7801");
					p.getDom(s).innerHTML = r[s][0];
				} else {
					p.setTitle("\u9ad8\u7d1a\u9a57\u8b49\u78bc");
					p.getDom(s).innerHTML = r[s][1];
				}
			}
		};
		m(e);
		var n = function () {
			f.common.trans.setting.regComplate("verifyCode", function (q) {
				if (q.code == "A00006") {
					if (l.type == "flash") {
						var r = (navigator.appName.indexOf("Microsoft") != -1) ? window.Head_Cut_miniblog : document.Head_Cut_miniblog;
						r[l.cb]();
					} else {
						l.cb();
					}
					p.close();
				} else {
					if (q.code == "R01409") {
						h();
						p.getDom("doorerror").style.display = "";
					} else {
						p.getDom("doorerror").style.display = "";
					}
				}
			});
			f.common.trans.setting.request("verifyCode", {door:p.getDom("doorinput").value});
		};
		f.addEvent(p.getDom("change"), "click", h);
		f.addEvent(p.getDom("doorcancel"), "click", function () {
			p.close();
			return false;
		});
		f.addEvent(p.getDom("doorsubmit"), "click", function () {
			if (p.getDom("doorinput").value == "") {
				p.getDom("doorerror").style.display = "";
			} else {
				p.getDom("doorerror").style.display = "none";
				n();
			}
		});
		f.addEvent(p.getDom("cn"), "click", function () {
			m("zh_cn");
		});
		f.addEvent(p.getDom("tw"), "click", function () {
			m("zh_tw");
		});
		f.common.enterSubmit({parent:p.getDom("doorinput"), action:n});
		return p;
	};
	return function (h) {
		var j = b(h);
		j.setMiddle().open().setTitle(g("#L{\u9ad8\u7ea7\u9a8c\u8bc1\u7801}"));
	};
});
STK.register("common.specialDialog.verifyUser", function (j) {
	var g = j.common.language;
	var a = {dialog:["<div class=\"commonLayer2\" node-type=\"outer\">", "<div class=\"layer_security_center\" node-type=\"inner\">", "<div class=\"securityframe1\">", "<dl class=\"safetytxt clearfix\">", "<dd class=\"no_ico\">", "<p class=\"W_texta W_f14\" node-type=\"textLarge\"></p>", "<p class=\"W_texta\" node-type=\"textSmall\"></p>", "</dd>", "</dl>", "<dl class=\"safetyform clearfix\">", "<dt node-type=\"textChoose\">#L{\u9009\u62e9\u9a8c\u8bc1\u65b9\u6cd5}\uff1a</dt>", "<dd class=\"validation\">", "<div class=\"partone\">", "<p>", "<select class=\"select\" node-type=\"selectType\">", "</select>", "</p>", "<p><a href=\"javascript:;\" node-type=\"sendcode\" class=\"btn_normal\"><em>#L{\u514d\u8d39\u83b7\u53d6\u9a8c\u8bc1\u7801}</em></a></p>", "<div class=\"errorTs\" node-type=\"sendcode_errtip\" style=\"display:none;\"></div>", "</div>", "</dd>", "</dl>", "<dl class=\"safetyform clearfix\">", "<dt><span class=\"vercode\">#L{\u9a8c\u8bc1\u7801}\uff1a</span></dt>", "<dd class=\"validation\">", "<div class=\"partone\">", "<p>", "<input type=\"text\" value=\"\" class=\"W_inputStp\" node-type=\"verify_code\" maxlength=\"6\">", "</p>", "</div>", "</dd>", "<dd class=\"tipbox\">", "<div class=\"partthree\"><div class=\"errorTs\" node-type=\"code_errtip\" style=\"display:none;\"></div></div>", "</dd>", "</dl>", "<dl class=\"safetytxt clearfix\">", "<dd class=\"no_ico\">", "<p class=\"W_texta\" node-type=\"textBottom\"></p>", "</dd>", "</dl>", "<div class=\"MIB_btn\">", "<a class=\"newabtngrn\" href=\"javascript:;\" node-type=\"apply\"><em node-type=\"okLabel\">#L{\u6211\u771f\u7684\u4e0d\u662f\u76d7\u53f7\u7684}</em></a>", "<a class=\"btn_normal\" href=\"javascript:;\" node-type=\"cancel\"><em node-type=\"cancelLabel\">#L{\u53d6\u6d88}</em></a>", "</div>", "</div>", "</div>", "</div>"].join("")};
	var f = function () {
	};
	var e = f;
	var h = [];
	var l = function () {
		var n = {};
		var o = null;
		n.template = g(a.dialog);
		n.onOpen = function () {
			o.inUsed = true;
		};
		n.onClose = function () {
			if (o.cancelFunction && !o.applyClick) {
				o.cancelFunction();
			}
			o.cancelFunction = null;
			o.applyFunction = null;
			o.applyClick = null;
			o.inUsed = false;
		};
		o = j.common.customDialog(n);
		var m = true;
		o.setSendCodeTimer = function () {
			m = false;
			var r = 180;
			var q = function () {
				o.getDom("sendcode").innerHTML = "<em style=\"color:#C7C7C7;\">" + g("#L{\u5df2\u53d1\u9001}\uff0c") + r + g("#L{\u79d2\u540e\u518d\u6b21\u53d1\u9001\u9a8c\u8bc1\u7801}") + "</em>";
			};
			var p = function () {
				o.getDom("sendcode").innerHTML = "<em>" + g("#L{\u514d\u8d39\u83b7\u53d6\u9a8c\u8bc1\u7801}") + "</em>";
			};
			q();
			setTimeout(function () {
				r--;
				q();
				if (r <= 0) {
					m = true;
					p();
					return;
				}
				setTimeout(arguments.callee, 1000);
			}, 1000);
		};
		o.sendCode = function () {
			if (!m) {
				return;
			}
			o.setSendCodeTimer();
			o.clearErrTip("code_errtip");
			var q = o.getDom("selectType").value;
			j.common.trans.setting.regComplate("sendMobileCode", function (r, s) {
				if (r && r.code) {
					if (r.code == "A00006") {
						o.clearErrTip("code_errtip");
					} else {
						if (r.code == "A00010") {
							o.setErrTip("code_errtip", g("#L{\u53d1\u9001\u9a8c\u8bc1\u7801\u6b21\u6570\u8fbe\u5230\u4e0a\u9650}"));
						} else {
							o.setErrTip("code_errtip", g("#L{\u9a8c\u8bc1\u7801\u53d1\u9001\u5931\u8d25}"));
						}
					}
				} else {
					o.setErrTip("code_errtip", g("#L{\u9a8c\u8bc1\u7801\u53d1\u9001\u5931\u8d25}"));
				}
			});
			var p = {};
			if ($CONFIG.setting_rid) {
				p.setting_rid = $CONFIG.setting_rid;
			}
			if ($CONFIG.type) {
				p.type = $CONFIG.type;
			}
			p.verify_type = o.getDom("selectType").value;
			j.common.trans.setting.request("sendMobileCode", p);
			return false;
		};
		o.clearErrTip = function (q) {
			var p = o.getDom(q);
			if (p) {
				p.style.display = "none";
				p.style.visibility = "hidden";
				p.innerHTML = "";
			}
		};
		o.setErrTip = function (q, r) {
			var p = o.getDom(q);
			if (p) {
				p.style.display = "";
				p.style.visibility = "visible";
				p.innerHTML = r;
			}
		};
		o.validate = function () {
			var q = o.getDom("verify_code").value;
			var p = true;
			if (!q) {
				o.setErrTip("code_errtip", g("#L{\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801}"));
				p = false;
			} else {
				if (!(/^[\d]{6}$/).test(q)) {
					o.setErrTip("code_errtip", g("#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801}"));
					p = false;
				} else {
					o.clearErrTip("code_errtip");
				}
			}
			return p;
		};
		o.okLabel = function (p) {
			o.getDom("okLabel").innerHTML = p;
		};
		o.cancelLabel = function (p) {
			o.getDom("cancelLabel").innerHTML = p;
		};
		j.addEvent(o.getDom("cancel"), "click", function () {
			o.close();
			return false;
		});
		o.fillSelect = function () {
			var r = $CONFIG.bindPhone, q = $CONFIG.verify_email, p = o.getDom("selectType");
			p.options.length = 0;
			if (r) {
				p.options[p.options.length] = new Option(g("#L{\u7ed1\u5b9a\u624b\u673a}") + r, "mobile");
			}
			if (q) {
				p.options[p.options.length] = new Option(g("#L{\u7535\u5b50\u90ae\u7bb1}") + q, "email");
			}
		};
		o.exec_ok = function () {
			o.applyClick = true;
			if (o.applyFunction) {
				o.applyFunction();
			}
			o.close();
		};
		j.addEvent(o.getDom("apply"), "click", function () {
			if (o.validate()) {
				e({type:o.getDom("selectType").value, code:o.getDom("verify_code").value}, function (q, p) {
					if (q && $CONFIG.userAbStatus === 1 && ($CONFIG.bindPhone || $CONFIG.verify_email)) {
						if (q.code == "100106") {
							o.setErrTip("code_errtip", g("#L{\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801}"));
						} else {
							if (q.code == "100107") {
								o.setErrTip("code_errtip", g("#L{\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u9a8c\u8bc1\u7801}"));
							} else {
								if (q.code == "M00004") {
									o.setErrTip("code_errtip", g("#L{\u9a8c\u8bc1\u7801\u9519\u8bef}"));
								} else {
									o.exec_ok();
								}
							}
						}
					} else {
						o.exec_ok();
					}
				});
			}
			return false;
		});
		j.addEvent(o.getDom("verify_code"), "focus", function () {
			o.clearErrTip("code_errtip");
		});
		j.addEvent(o.getDom("verify_code"), "blur", o.validate);
		j.addEvent(o.getDom("sendcode"), "click", o.sendCode);
		return o;
	};
	var b = function () {
		for (var m = 0; m < h.length; m += 1) {
			if (!h[m]["inUsed"]) {
				return h[m];
			}
		}
		var n = l();
		h.push(n);
		return n;
	};
	return function (m) {
		var n = j.parseParam({from:null, textLarge:topPublic.name + g("#L{\uff0c\u62bd\u7a7a\u559d\u676f\u8336\u5427}"), textSmall:g("#L{\u4e3a\u4e86\u8bc1\u660e\u7528\u6237\u662f\u4f60\u672c\u4eba\u64cd\u4f5c\uff0c\u800c\u975e\u76d7\u53f7\u7684\u5176\u4ed6\u4eba\uff0c\u8bf7\u5148\u8fdb\u884c\u5b89\u5168\u9a8c\u8bc1\u5427\u3002}"), textBottom:g("#L{\u5982\u679c3\u5206\u949f\u5185\u6ca1\u6709\u63a5\u6536\u5230\u9a8c\u8bc1\u7801\uff0c\u8bf7\u8054\u7cfb\u5ba2\u670d}4000 960 960"), title:g("#L{\u63d0\u793a}"), okLabel:g("#L{\u6211\u771f\u7684\u4e0d\u662f\u76d7\u53f7\u7684}"), cancelLabel:g("#L{\u53d6\u6d88}"), check:f, OK:f, cancel:f}, m);
		e = n.check;
		var o = b();
		o.getDom("textLarge").innerHTML = n.textLarge;
		o.getDom("textSmall").innerHTML = n.textSmall;
		o.getDom("textBottom").innerHTML = n.textBottom;
		o.getDom("verify_code").value = "";
		o.okLabel(n.okLabel);
		o.cancelLabel(n.cancelLabel);
		o.applyFunction = function () {
			n.OK();
		};
		o.cancelFunction = n.cancel;
		o.clearErrTip("sendcode_errtip");
		o.clearErrTip("code_errtip");
		o.setMiddle().open(n.from || null).setTitle(n.title);
		o.fillSelect();
		return o;
	};
});
STK.jobsM.register("job.settings.account", function (g) {
	var e = g.common.language;
	var p = {m1:e("#L{\u4fdd\u5b58\u6210\u529f}")};
	var h = {M01104:"\u8bf7\u8bbe\u7f6e\u6027\u522b", M01105:"\u8bf7\u8bbe\u7f6e\u7701\u5e02", M01106:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740"};
	var j = e("#L{\u4fee\u6539\u6635\u79f0\u540e\uff0c\u539f\u6635\u79f0\u53ef\u80fd\u5b58\u5728\u88ab\u62a2\u6ce8\u7684\u98ce\u9669\uff0c\u4e0d\u5efa\u8bae\u60a8\u9891\u7e41\u4fee\u6539\u6635\u79f0\u3002\u5982\u65b0\u6635\u79f0\u4e0e\u60a8\u7684\u8ba4\u8bc1\u8eab\u4efd\u4e0d\u7b26\uff0c\u6211\u4eec\u5c06\u4f1a\u8fdb\u884c\u76f8\u5e94\u5904\u7406\u3002}");
	var f = e("#L{\u60a8\u7684\u6635\u79f0\u4fee\u6539\u540e\uff0c\u6211\u4eec\u5c06\u572848\u5c0f\u65f6\u5185\u91cd\u65b0\u5ba1\u6838\u60a8\u7684\u5fae\u535a\u8fbe\u4eba\u8ba4\u8bc1\uff0c\u60a8\u65e0\u9700\u518d\u6b21\u7533\u8bf7\u3002\u5982\u6709\u95ee\u9898\u8bf7\u79c1\u4fe1\u8054\u7cfb}<a id=\"zjq\" href=\"http://weibo.com/weibodaren\" target=\"_blank\">@#L{\u8fbe\u4eba}</a>\u3002");
	var b = g.comp.accountForm;
	var l = g.E("information_box");
	var t = {};
	var s = {nick:"nickname", name:"realname", web:"blog", qq:"qq", msn:"msn", bio:"mydesc", idCard:"card_code", cardType:"card_type", prvyName:"pub_name", prvyBirth:"pub_birthday", prvyBlog:"pub_blog", prvyEmail:"pub_email", prvyQQ:"pub_qq", prvyMSN:"pub_msn"};
	var o = g.selector("input,textarea,select", l);
	for (var q = 0, r = o.length; q < r; q += 1) {
		var w = o[q].getAttribute("name");
		for (k in s) {
			if (s[k] == w && typeof s[k] === "string") {
				s[k] = o[q];
			}
		}
	}
	var n = s.nick.value;
	l.style.display = "none";
	t.nick = b.nickName({input:s.nick, tip:g.E("red_nickname")});
	t.name = b.realName({input:s.name, tip:g.E("red_realname"), privacy:s.prvyName});
	g.common.provinceAndCity({counDom:g.selector("select[name=country]")[0], provDom:g.selector("select[name=province]")[0], cityDom:g.selector("select[name=city]")[0], noLimit:{province:true, city:false}, badDesign:true});
	g.common.dateSelector(g.selector("select[name=Date_Year]")[0], g.selector("select[name=birthday_m]")[0], g.selector("select[name=birthday_d]")[0], g.selector("select[name=birthday_d]")[0].value = g.selector("select[name=birthday_d]")[0].getAttribute("init_value"));
	t.web = b.webAddress({input:s.web, tip:g.E("blogtip"), privacy:s.prvyBlog, display:"none"});
	g.E("modify_email").onclick = function () {
		var x = g.E("favorite_email").innerHTML;
		g.comp.generalMail({actEl:g.E("modify_email"), onSuccess:function (y) {
			g.E("favorite_email").innerHTML = y;
			g.E("email").value = y;
			if (y) {
				g.E("modify_email").innerHTML = e("#L{\u4fee\u6539}");
				g.E("favorite_email").style.display = "";
			} else {
				g.E("modify_email").innerHTML = e("#L{\u6dfb\u52a0}");
				g.E("favorite_email").style.display = "none";
			}
		}, value:x, title:(x ? e("#L{\u4fee\u6539\u5e38\u7528\u90ae\u7bb1}") : e("#L{\u6dfb\u52a0\u5e38\u7528\u90ae\u7bb1}"))});
	};
	g.comp.privacySelector({select:s.prvyEmail});
	g.comp.privacySelector({select:s.prvyBirth});
	t.qq = b.qqAddress({input:s.qq, tip:g.E("red_qq"), privacy:s.prvyQQ});
	t.msn = b.msnAddress({input:s.msn, tip:g.E("red_msn"), privacy:s.prvyMSN});
	t.bio = b.bio({input:s.bio, tip:g.E("red_mydesc")});
	if (typeof s.idCard !== "string") {
		t.idCard = b.idCard({input:s.idCard, tip:g.E("red_idcard"), select:s.cardType});
	}
	l.style.display = "block";
	var u = false;
	var m = g.common.bubble();
	var a = {check:function () {
		for (var y in t) {
			var x = t[y].status();
			if (x == "unchange") {
				continue;
			} else {
				if (x != "success") {
					return t[y].status();
				}
			}
		}
		return "success";
	}, checkDate:function () {
		var C = g.selector("select[name=Date_Year]")[0], B = g.selector("select[name=birthday_m]")[0], x = g.selector("select[name=birthday_d]")[0];
		var z = C.options[C.selectedIndex].text, y = B.options[B.selectedIndex >= 0 ? B.selectedIndex : 0].text, A = x.options[x.selectedIndex >= 0 ? x.selectedIndex : 0].text;
		return (z == "" && y == "" && A == "") ? true : !(z == "" || y == "" || A == "");
	}, submit:function () {
		var y = a.check();
		if (y === "loading") {
			setTimeout(a.submit, 500);
			return false;
		}
		if (!a.checkDate()) {
			g.common.confirm({text:e("#L{\u8bf7\u8f93\u5165\u5b8c\u6574\u7684\u751f\u65e5}"), icon:"warning", OK:function () {
				var B = document.documentElement, z = document.body;
				var A = g.position(g.E("birthday")).t - 50;
				if (B && B.scrollTop) {
					B.scrollTop = A;
				} else {
					if (z) {
						z.scrollTop = A;
					}
				}
			}, from:v});
			return false;
		}
		if (y === "error") {
			u = false;
			return false;
		}
		if (y === "success") {
			var x = g.htmlToJson(g.E("information_box"));
			if ((x.nickname != x.oldnick) && ($CONFIG.userAbStatus === 1)) {
				if ($CONFIG.bindPhone || $CONFIG.verify_email) {
					g.common.specialDialog.verifyUser({check:function (A, z) {
						a.trans(x, A, z);
					}, OK:function (z) {
						u = false;
					}, cancel:function () {
						u = false;
					}});
				} else {
					g.common.alert({html:["<span style=\"font-weight:bold;font-size:20px;display:block;padding-bottom:5px;\">", e("#L{\u4e0d\u8981\u8ffd\u6094\u83ab\u53ca\uff01}"), "</span><span style=\"display:block;padding-bottom:5px;\">", e("#L{\u5982\u679c\u7528\u6237\u672a\u8fdb\u884c\u5b89\u5168\u9a8c\u8bc1\uff0c\u5219\u5176\u8d26\u53f7\u88ab\u76d7\u7684\u53ef\u80fd\u6027\u4f1a\u59279\u500d\u3002\u4e3a\u786e\u4fdd\u7528\u4f7f\u7528\u4e86\u6700\u65b0\u7684\u5bc6\u7801\u4fdd\u62a4\u63aa\u65bd\uff0c\u8bf7\u63d0\u4ea4\u7ed9\u6211\u4eec\u4f60\u7684\u5b89\u5168\u4fe1\u606f\u3002}"), "</span>", e("#L{\u9009\u62e9\u7ed1\u5b9a\u65b9\u5f0f\uff1a}"), "<select id=\"go_type\"><option value=\"mobile\">", e("#L{\u7ed1\u5b9a\u624b\u673a}"), "</option><option value=\"email\">", e("#L{\u7ed1\u5b9a\u90ae\u7bb1}"), "</option></select>", ].join(""), OK:function () {
						var z = g.E("go_type").value;
						if (z == "email") {
							window.location.href = "/settings/security/email";
						} else {
							if (z == "mobile") {
								window.location.href = "/settings/mobile";
							}
						}
					}, okLabel:e("#L{\u9a6c\u4e0a\u7ed1\u5b9a}"), icon:"doubt"});
				}
			} else {
				a.trans(x);
			}
			return true;
		}
	}, trans:function (x, z, y) {
		g.common.trans.setting.regComplate("baseInfo", function (A, B) {
			u = false;
			if (typeof (y) == "function") {
				y(A, B);
			}
			if (A.code == "A00006") {
				var C = g.position(g.E("submit"));
				C.l = C.l + 72;
				C.t = C.t - 10;
				m.position(C);
				m.icon("success");
				m.content("<div style=\"width:60px;\">" + p.m1 + "</div>");
				m.show();
				u = true;
				setTimeout(function () {
					u = false;
					m.hidden();
					setTimeout(function () {
						window.location.reload();
					}, 2000);
				}, 2000);
			} else {
				if ($CONFIG.userAbStatus === 1 && ($CONFIG.bindPhone || $CONFIG.verify_email) && (A.code == "100106" || A.code == "100107" || A.code == "M00004")) {
				} else {
					g.common.alert(g.common.sysmsg(A));
				}
				return false;
			}
		});
		if ($CONFIG.setting_rid) {
			x.setting_rid = $CONFIG.setting_rid;
		}
		if (z) {
			if (z.code) {
				x.recode = z.code;
			}
			if (z.type) {
				x.verify_type = z.type;
			}
		}
		g.common.trans.setting.request("baseInfo", x);
	}};
	var v = g.E("submit");
	g.addEvent(v, "click", function () {
		if (!u) {
			u = true;
		}
		if ($CONFIG.isvip && n != s.nick.value) {
			g.common.confirm({html:j, icon:"warning", OK:function () {
				a.submit();
			}, cancel:function () {
				s.nick.value = n;
			}, okLabel:e("#L{\u4fee\u6539\u6635\u79f0}"), from:v});
		} else {
			if (($CONFIG.$level == 7 || $CONFIG.$level == 6) && n != s.nick.value) {
				g.common.confirm({html:f, icon:"warning", OK:function () {
					a.submit();
				}, cancel:function () {
					s.nick.value = n;
				}, okLabel:e("#L{\u786e\u5b9a}"), from:v});
			} else {
				if ($CONFIG.needcheck == "4" && n != s.nick.value) {
					g.common.verifyCode({cb:function () {
						a.submit();
					}});
				} else {
					a.submit();
				}
			}
		}
	});
});
STK.jobsM.register("job.settings.messageAlert", function (a) {
	if ($CONFIG["$remind_user"] && $CONFIG["$remind_user"] == "1") {
		a.common.alert({text:"\u624b\u673a\u77ed\u4fe1\u7684\u5b89\u5168\u63d0\u9192\u529f\u80fd\u8bd5\u7528\u671f\u5df2\u7ed3\u675f\uff0c\u6211\u4eec\u6682\u65f6\u5173\u95ed\u4e86\u8be5\u670d\u52a1\uff0c\u611f\u8c22\u60a8\u7684\u4f7f\u7528\u3002\u6211\u4eec\u5df1\u4e3a\u60a8\u81ea\u52a8\u5207\u6362\u5230\u90ae\u4ef6\u63d0\u9192\u6216\u5fae\u535a\u901a\u77e5\u7684\u65b9\u5f0f\uff0c\u6b22\u8fce\u7ee7\u7eed\u4f7f\u7528\u3002"});
	}
});

